Sponsored Content
Top Forums Programming Need a "select all" feature in TCL Post 302433748 by scottwevans on Wednesday 30th of June 2010 11:13:38 AM
Old 06-30-2010
Need a "select all" feature in TCL

I hope this is simple... (I tried looking for help in the Shell Programming and Scripting thread, but got no responses.)

I have a TCL script which has several checkboxes. Is there a way to have one of the checkboxes serve as a "select all" and select/deselect all of the other boxes?

Can you show me a mini-sample?

Thanks... Scott E.
 

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

vBulletin Exclude Forums from "Get New Posts" Feature

First I would like to say you run an awesome site. I use it pretty much everyday... I am a member of a local Jeep Club Virtual Jeep Club - Powered by vBulletin and we run vBulletin Version 3.7.0. You have a feature we would like to add. In "User CP" -> "Edit Options" you have: Exclude... (3 Replies)
Discussion started by: Ikon
3 Replies

2. IP Networking

Which release version of Solaris 10 have "snoop -I" feature

In one of Sun docs I found that a new option, -I, is added to the snoop command.This option specifies for the command to use the new IP layer devices instead of the underlying link-layer device to display traffic data. it is used to enhance IP observability. But in Solaris 10 with release verstion... (0 Replies)
Discussion started by: anando.1980
0 Replies

3. Shell Programming and Scripting

"directory checksum error" when attempting to install tcl

OS: HP-UX Programs I want to install: expect and tcl I'm lost. I bought the book. I began reading the book. I want to install expect. I've been able to download the .z, and extract it successfully. But, of course, it apparently needs tcl and possibly tk also, and ... I... (0 Replies)
Discussion started by: instant000
0 Replies

4. Programming

Looking for a "Select All" feature in TCL

I hope thi sis simple... I have a TCL script which has several checkboxes. Is there a way to have one of the checkboxes be a "select all" and select/deselect all of the other boxes? Can you show me a mini-sample? Thanks... Scott E. (0 Replies)
Discussion started by: scottwevans
0 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Red Hat

to disable "out off office" feature on QMAIL.

How can I disable out of office feature on qmail. We don't want to be use this feature by users. Especially our boss doesn't want because clients have smartphone so they can answer from everywhere! (0 Replies)
Discussion started by: getrue
0 Replies

7. Shell Programming and Scripting

TCL: syntax error in expression with "*"

I'm using tcl scripts in ns2 ( network simulator) through cygwin. It works fine , however, I downloaded an example when i run it , I got the following syntax error: syntax error in expression with " *2" : unexpected operator * while executing : "expr $bw *2" invoked from within: "$ns... (1 Reply)
Discussion started by: ENG_MOHD
1 Replies

8. What is on Your Mind?

New Feature: Tagging Threads as "Solved"

We just added a new feature. When tagging a thread, if you tag the thread "solved" the title of the thread will show up as blue (#0000FF) in various places (forum view, top stats, etc.) So, if you want to show your thread as "solved" simply add a "solved" tag to the thread taglist. ... (16 Replies)
Discussion started by: Neo
16 Replies

9. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
Standard Channels(3)					      Tcl Library Procedures					      Standard Channels(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_StandardChannels - How the Tcl library deals with the standard channels _________________________________________________________________ DESCRIPTION
This page explains the initialization and use of standard channels in the Tcl library. The term standard channels comes out of the Unix world and refers to the three channels automatically opened by the OS for each new appli- cation. They are stdin, stdout and stderr. The first is the standard input an application can read from, the other two refer to writable channels, one for regular output and the other for error messages. Tcl generalizes this concept in a cross-platform way and exposes standard channels to the script level. APIs The public API procedures dealing directly with standard channels are Tcl_GetStdChannel and Tcl_SetStdChannel. Additional public APIs to consider are Tcl_RegisterChannel, Tcl_CreateChannel and Tcl_GetChannel. INITIALIZATION OF TCL STANDARD CHANNELS
Standard channels are initialized by the Tcl library in three cases: when explicitly requested, when implicitly required before returning channel information, or when implicitly required during registration of a new channel. These cases differ in how they handle unavailable platform- specific standard channels. (A channel is not ``available'' if it could not be successfully opened; for example, in a Tcl application run as a Windows NT service.) 1) A single standard channel is initialized when it is explicitly specified in a call to Tcl_SetStdChannel. The state of the other standard channels are unaffected. Missing platform-specific standard channels do not matter here. This approach is not available at the script level. 2) All uninitialized standard channels are initialized to platform-specific default values: (a) when open channels are listed with Tcl_GetChannelNames (or the file channels script command), or (b) when information about any standard channel is requested with a call to Tcl_GetStdChannel, or with a call to Tcl_GetChannel which specifies one of the standard names (stdin, stdout and stderr). In case of missing platform-specific standard channels, the Tcl standard channels are considered as initialized and then immediately closed. This means that the first three Tcl channels then opened by the application are designated as the Tcl standard channels. 3) All uninitialized standard channels are initialized to platform-specific default values when a user-requested channel is registered with Tcl_RegisterChannel. In case of unavailable platform-specific standard channels the channel whose creation caused the initialization of the Tcl standard channels is made a normal channel. The next three Tcl channels opened by the application are designated as the Tcl standard chan- nels. In other words, of the first four Tcl channels opened by the application the second to fourth are designated as the Tcl stan- dard channels. RE-INITIALIZATION OF TCL STANDARD CHANNELS Once a Tcl standard channel is initialized through one of the methods above, closing this Tcl standard channel will cause the next call to Tcl_CreateChannel to make the new channel the new standard channel, too. If more than one Tcl standard channel was closed Tcl_CreateChannel will fill the empty slots in the order stdin, stdout and stderr. Tcl_CreateChannel will not try to reinitialize an empty slot if that slot was not initialized before. It is this behavior which enables an application to employ method 1 of initialization, i.e. to create and designate their own Tcl standard channels. tclsh The Tcl shell (or rather Tcl_Main) uses method 2 to initialize the standard channels. wish The windowing shell (or rather Tk_MainEx) uses method 1 to initialize the standard channels (See Tk_InitConsoleChannels) on non-Unix plat- forms. On Unix platforms, Tk_MainEx implicitly uses method 2 to initialize the standard channels. SEE ALSO
Tcl_CreateChannel(3), Tcl_RegisterChannel(3), Tcl_GetChannel(3), Tcl_GetStdChannel(3), Tcl_SetStdChannel(3), Tk_InitConsoleChannels(3), tclsh(1), wish(1), Tcl_Main(3), Tk_MainEx(3) KEYWORDS
standard channels Tcl 7.5 Standard Channels(3)
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy