|
NAMEiwidgets::scrolledframe - Create and manipulate scrolled frame widgetsSYNOPSISiwidgets::scrolledframe pathName ?options?INHERITANCEitk::Widget <- iwidgets::Labeledwidget <- iwidgets::Scrolledwidget <- iwidgets::ScrolledframeSTANDARD OPTIONSactiveBackground background borderWidth cursor font foreground highlightColor highlightThickness relief selectBackground selectBorderWidth selectForeground See the "options" manual entry for details on the standard options. ASSOCIATED OPTIONSactiveRelief elementBorderWidth jump troughColor See the "scrollbar" manual entry for details on the associated options. INHERITED OPTIONSLabelBitmap labelFont labelImage labelMargin labelPos labelText labelVariable sticky See the "labeledwidget" class manual entry for details on the inherited options. WIDGET-SPECIFIC OPTIONSName: height Class: Height Command-Line Switch: -height
Name: hscrollMode Class: ScrollMode Command-Line Switch: -hscrollmode
Name: sbWidth Class: Width Command-Line Switch: -sbwidth
Name: scrollMargin Class: Margin Command-Line Switch: -scrollmargin
Name: vscrollMode Class: ScrollMode Command-Line Switch: -vscrollmode
Name: width Class: Width Command-Line Switch: -width
DESCRIPTIONThe scrolledframe combines the functionallity of scrolling with that of a typical frame widget to implement a clipable viewing area whose visible region may be modified with the scroll bars. This enables the contruction of visually larger areas than which 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 dynamically. The frame itself may be accessed by the childsite method and then filled with other widget combinations.METHODSThe iwidgets::scrolledframe command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:pathName option ?arg arg ...? Option and the args determine the exact behavior of the command. The following commands are possible for scrolledframe widgets: ASSOCIATED METHODSxview yview See the "canvas" manual entry for details on the associated methods. WIDGET-SPECIFIC METHODS
COMPONENTSName: horizsb Class: Scrollbar
Name: vertsb Class: Scrollbar
EXAMPLEpackage 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 AUTHOR
KEYWORDSscrolledframe, frame, widget
Visit the GSP FreeBSD Man Page Interface. |