listboxs and scrollbars in TCL


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting listboxs and scrollbars in TCL
# 1  
Old 01-31-2006
listboxs and scrollbars in TCL

Hi !

Anyone can tell me how to controll two listboxes with only one scrollbar in TCL? I have tried the following but it didn't work:

listbox .listw.list -width 25 -height 25 -yscrollcommand {.listw.scroll set}
listbox .listw.list2 -width 25 -height 25 -yscrollcommand {.listw.scroll set}
scrollbar .listw.scroll -command {.listw.list2 yview;.listw.list yview}

Thanks!

Pablo.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. War Stories

Scrollbars and Overflow in Posts (Code Tags)

YAY! Finally, seems like forever, I added this CSS to the posts (postbit) for table columns and scrollbars work still do not work for code tags and text inside posts. <style> td { max-width:200px; overflow: auto; white-space: nowrap; } </style> YAY... Now scollbars... (3 Replies)
Discussion started by: Neo
3 Replies

2. What is on Your Mind?

Scrollbars and Bootstrap Tables

Making some progress using CSS from Bootstrap; changing table classes to the Bootstrap "table" class and wrapping those tables in a div with a scroll bar. So, the good news is that now each post with large blocks of code that exceeds the width of the screen will have a scrollbar; but the bad... (0 Replies)
Discussion started by: Neo
0 Replies

3. Shell Programming and Scripting

help in tcl...

how can i make a list with the n last files and their details in tcl?.. thanks. (0 Replies)
Discussion started by: eee
0 Replies

4. UNIX for Advanced & Expert Users

Please help me in tcl/tk

i am new one to tcl/tk OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh tclsh tclsh8.4 OTP-ARB:/home/ponmuthu/tcl=>/usr/bin/tclsh % wish Application initialization failed: no display name and no $DISPLAY environment variable when i give like that i am getting error Application... (0 Replies)
Discussion started by: ponmuthu
0 Replies

5. Shell Programming and Scripting

exec in tcl

Hello; I have a console application who shown a output in every iteration, now i create a small GUI to call the application with button etc..., but what must i do to follow showing the output in the screen? Advanced thanks, Pablo (0 Replies)
Discussion started by: pablodecastillo
0 Replies

6. Shell Programming and Scripting

Need your help - tcl

Hello, Can someone explaine me the meaning of this program: #! /usr/bin/tclsh set mctal set a set b set c set d set e while {! line cell]} { } while {! line]} { } while {! line cell]} { } while {! line]} { } (0 Replies)
Discussion started by: jolecanard
0 Replies

7. Shell Programming and Scripting

TCL, how to

Does any one know how to capture the output of command called from a TCL script? I cannot figure this out. I've been working on it for 4 hours now :confused: (2 Replies)
Discussion started by: Lorna
2 Replies

8. Shell Programming and Scripting

tcl/expect

Can someone identify what is the problem here?. no children while executing "exp_wait -nowait -i -1" (procedure "logOptions" line 45) invoked from within "logOptions" (procedure "doExecute" line 98) invoked from within "doExecute" (procedure "main" line 32) ... (7 Replies)
Discussion started by: calsum
7 Replies

9. Shell Programming and Scripting

Help with Tcl...

Hello Tcl Experts, set i 0 while { $i < 10 } { puts "$i" incr i } I am trying to print the value of "i" at the same place. i.e. it should first print "1", then in next iteration print "2" over the location of "1" and so on.... (i.e. in every iteration, delete the previous number and... (2 Replies)
Discussion started by: sumitgarg
2 Replies

10. Shell Programming and Scripting

TK/TCL Help

can someone tell my why the puts is not reflecting the variable? CUT --> set fp while {-1 != } { button .a${line} -text "${line} " -width 20 -command { puts $line } pack .a${line} } (0 Replies)
Discussion started by: hpuxrox
0 Replies
Login or Register to Ask a Question
TIX(3)							       Tix Built-In Commands							    TIX(3)

NAME
tixScrolledText - Create and manipulate Tix ScrolledText widgets SYNOPSIS
tixScrolledText pathName ?options? -anchor -background -cursor -relief -borderWidth WIDGET-SPECIFIC OPTIONS [-height height] Specifies the desired height for the window, in pixels. [-scrollbar scrollbar] Specifies the display policy of the scrollbars. The following values are recognized: auto ?+x? ?-x? ?+y? ?-y? When -scrollbar is set to "auto", the scrollbars are shown only when needed. Additional modifiers can be used to force a scrollbar to be shown or hidden. For example, "auto -y" means the horizontal scrollbar should be shown when needed but the vertical scrollbar should always be hidden; "auto +x" means the vertical scrollbar should be shown when needed but the hori- zontal scrollbar should always be shown, and so on. both Both scrollbars are shown none The scrollbars are never shown. x Only the horizontal scrollbar is shown; y Only the vertical scrollbar is shown. [-width width] Specifies the desired width for the window, in pixels. SUBWIDGETS
Name: hsb Class: Scrollbar The horizontal scrollbar subwidget. Name: text Class: Text The Text subwidget inside the ScrolledText widget. Name: vsb Class: Scrollbar The vertical scrollbar subwidget. DESCRIPTION
The tixScrolledText command creates a new window (given by the pathName argument) and makes it into a ScrolledText widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ScrolledText widget such as its cursor and relief. WIDGET COMMANDS
The tixScrolledText command creates a new Tcl command whose name is the same as the path name of the ScrolledText widget's window. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? PathName is the name of the command, which is the same as the ScrolledText widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for ScrolledText widgets: pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the tixScrolledText command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the tixScrolledText command. pathName subwidget name ?args? When no additional arguments are given, returns the pathname of the subwidget of the specified name. When no additional arguments are given, the widget command of the specified subwidget will be called with these parameters. KEYWORDS
Tix(n) Tix 4.0 TIX(3)