|
NAMEiwidgets::selectionbox - Create and manipulate a selection box widgetSYNOPSISiwidgets::selectionbox pathName ?options?INHERITANCEitk::Widget <- iwidgets::SelectionboxSTANDARD OPTIONSactiveBackground background borderWidth cursor exportSelection foreground highlightColor highlightThickness insertBackground insertBorderWidth insertOffTime insertOnTime insertWidth relief repeatDelay repeatInterval selectBackground selectBorderWidth selectForeground See the "options" manual entry for details on the standard options. ASSOCIATED OPTIONStextBackground textFont See the "entryfield" widget class manual entry for details on the above associated options. labelFont labelMargin See the "labeledwidget" class manual entry for details on the above associated options. activeRelief elementBorderWidth jump troughColor See the "scrollbar" widget class manual entry for details on the above associated options. dblClickCommand hscrollMode sbWidth scrollMargin textBackground textFont vscrollMode See the "scrolledlistbox" widget class manual entry for details on the above associated options. WIDGET-SPECIFIC OPTIONSName: childSitePos Class: Position Command-Line Switch: -childsitepos
Name: height Class: Height Command-Line Switch: -height
Name: itemsCommand Class: Command Command-Line Switch: -itemscommand
Name: itemsLabel Class: Text Command-Line Switch: -itemslabel
Name: itemsLabelPos Class: Position Command-Line Switch: -itemslabelpos
Name: itemsOn Class: ItemsOn Command-Line Switch: -itemson
Name: margin Class: Margin Command-Line Switch: -margin
Name: selectionCommand Class: Command Command-Line Switch: -selectioncommand
Name: selectionLabel Class: Text Command-Line Switch: -selectionlabel
Name: selectionLabelPos Class: Position Command-Line Switch: -selectionlabelpos
Name: selectionOn Class: SelectionOn Command-Line Switch: -selectionon
Name: width Class: Width Command-Line Switch: -width
DESCRIPTIONThe iwidgets::selectionbox command creates a scrolled list of items and a selection entry field. The user may choose any of the items displayed in the scrolled list of alternatives and the selection field will be filled with the choice. The user is also free to enter a new value in the selection entry field. Both the list and entry areas have labels. A child site is also provided in which the user may create other widgets to be used in conjunction with the selection box.METHODSThe iwidgets::selectionbox 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. ASSOCIATED METHODScurselection delete index nearest scan selection size See the "listbox" widget class manual entry for details on the associated methods. WIDGET-SPECIFIC METHODS
COMPONENTSName: childsite Class: Frame
Name: items Class: Scrolledlistbox
Name: selection Class: Entryfield
EXAMPLEpackage require Iwidgets 4.0 option add *textBackground white iwidgets::selectionbox .sb -items {Hello {Out There} World} pack .sb -padx 10 -pady 10 -fill both -expand yes set cs [label [.sb childsite].label -text "Child Site"] pack $cs -fill x -padx 10 -pady 10 .sb insert items 2 {Cruel Cruel} .sb selection set 1 AUTHORMark L. UlfertsKEYWORDSselectionbox, widget
Visit the GSP FreeBSD Man Page Interface. |