anchor background cursor
relief borderWidth
See the options(n) manual entry for details on the standard options.
Name: height
Class: Height
Switch: -height
Name: scrollbar
Class: Scrollbar
Switch: -scrollbar
Name: width
Class: Width
Switch: -width
Name: xScrollIncrement
Class: ScrollIncrement
Switch: -xscrollincrement
Name: yScrollIncrement
Class: ScrollIncrement
Switch: -yscrollincrement
Name: hsb
Class: Scrollbar
Name: window
Class: Frame
Name: vsb
Class: Scrollbar
The tixScrolledWindow command creates a new window (given by the pathName argument) and makes it into a ScrolledWindow widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ScrolledWindow widget such as its cursor and relief.
To create widgets inside a ScrolledWindow widget, one must create the new widgets relative to the window subwidget and manage them inside the window subwidget. An error will be generated if one tries to create widgets as immediate children of the ScrolledWindow. For example: the following is correct code, which creates new widgets inside the window subwidget:
tixScrolledWindow .w; pack .w
set f [.w subwidget window]
button $f.b -text hi -width 40 -height 40
pack $f.b
The following example code is incorrect because it tries to create immediate children of the ScrolledWindow .w:
tixScrolledWindow .w; pack .w
button .w.b -text hi -width 40 -height 40
pack .w.b
The tixScrolledWindow command creates a new Tcl command whose name is the same as the path name of the ScrolledWindow 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 ScrolledWindow widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for ScrolledWindow widgets:
When no additional arguments are given, the widget command of the specified subwidget will be called with these parameters.