ActiveTcl User Guide
|
||
widgets iwidgets::scrolledframe pathName ?options? itk::Widget <- iwidgets::Labeledwidget <- iwidgets::Scrolledwidget <- iwid- gets::Scrolledframe
activeBackground background borderWidth cursor
tions.
activeRelief elementBorderWidth
jumptroughColor
options.
herited options.
forms acceptable to Tk_GetPixels. The default height is
100 pix- els.
scrollbar: static, dynamic, or none. In
static mode, the scroll bar is displayed at all times. Dynamic mode
displays the scroll bar as required, and none disables the scroll
bar display. The default is static.
able to Tk_GetPixels. The default width is 15 pixels.
the forms acceptable to Tk_GetPixels. The default is 3 pixels.
scrollbar: static, dynamic, or none. In
static mode, the scroll bar is displayed at all times. Dynamic mode
displays the scroll bar as required, and none disables the scroll
bar display. The default is static.
forms acceptable to Tk_GetPixels. The default height is
100 pix- els.
_________________________________________________________________
that of a typical frame widget to implement a clipable viewing area whose visible region may be modified with the scroll bars.
could normally be displayed, containing a heterogenous mix of other widgets. Options exist which allow full control over which scrollbars are displayed and the method, i.e. statically or dy- namically. The frame itself may be accessed by the childsite method and then filled with other widget combinations.
whose name is pathName. This command may be used to invoke vari- ous operations on the widget. It has the following general form:
pathName option ?arg arg ...?
ods.
pathName cget option Returns the current value of the configura- tion option given by option. Option may have any of the values accepted by the iwidgets::scrolledframe command. pathName child*- site Return the path name of the child site. pathName configure ?option? ?value option value ...? Query or modify the configura- tion options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see
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 iwid*- gets::scrolledframe command. pathName justify direction Justi- fies the frame contents via the scroll bars in one of four direc- tions: left, right, top, or bottom.
ScrollBar widget manual entry for details on the horizsb compo-
nent item.
ScrollBar widget manual entry for details on the vertsb compo- nent item.
package require Iwidgets 4.0
iwidgets::scrolledframe .sf -width 150 -height 180 \ -labelon yes
-labeltext scrolledframe
set cs [.sf childsite]
pack [button $cs.b1 -text Hello] -pady 10
pack [button $cs.b2 -text World] -pady 10
pack [button $cs.b3 -text This is a test"] -pady 10 pack [button
$cs.b4 -text This is a really big button"] -pady 10 pack [button
$cs.b5 -text This is another really big button"] -pady 10 pack
[button $cs.b6 -text This is the last really big button"] -pady
10
pack .sf -expand yes -fill both -padx 10 -pady 10