ActiveTcl User Guide
|
||
box widget iwidgets::disjointlistbox pathName ?options? itk::Widget <- iwidgets::Disjointlistbox
activeBackground selectBorderWidth selectForeground activeForeground activeRelief background
tions.
lhsButtonLabel rhsButtonLabel
sociated options.
labelFont lhsLabelText rhsLabelText
sociated options.
jump troughColor
above associated options.
textBackground textFont
lhsItems rhsItems
above associated options.
ative to the scrolledlistbox widgetsn, bottom, or
center. The default is bottom.
default is Available".
default is Available".
scrolledlistbox after items are inserted. Accepts the same sort options as the scrolledlistbox sort method (Tcl's lsort command).
end of the list, and no sorting is performed. The default is
increasing".
scrolledlistbox after items are inserted. Accepts the same sort options as the scrolledlistbox sort method (Tcl's lsort command).
end of the list, and no sorting is performed. The default is
increasing".
_________________________________________________________________
listboxs similar to the OSF/Motif Book printing dialog of the FrameMaker program. It is implementation constists of a two
tion of the two Scrolledlistboxes with one another. That is, a given instance of a Disjointlistbox will never exist, without the aid of a hack magician, which has Scrolledlistbox widgets with items in common. That means the relationship between the two is maintained similar to that of disjoint sets.
the the two buttons.
displayed by the 2 Scrolledlistboxes and to control the placement of the insertion and removal buttons. The iwidgets::dis*- jointlistbox 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 ...?
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::disjointlistbox command. pathName con*- figure ?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 path-
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 iwidgets::disjointlistbox command. pathName setlhs Set the cur- rent contents of the left-most Scrolledlistbox with the input list of items. Removes all (if any) items from the right-most
the disjoint property between the two pathName setrhs Set the current contents of the right-most Scrolledlistbox with the input list of items. Removes all (if any) items from the left-most
the disjoint property between the two pathName getlhs Returns the current contents of the left-most Scrolledlistbox pathName getrhs
pathName insertlhs Add the input list of items to the current contents of the left-most Scrolledlistbox. Removes all (if any) items from the right-most Scrolledlistbox which exist in the in- put list option to maintain the disjoint property between the two pathName insertrhs Add the input list of items to the current contents of the right-most Scrolledlistbox. Removes all (if any) items from the left-most Scrolledlistbox which exist in the input list option to maintain the disjoint property between the two.
the scrolledlistbox widget manual entry for details on the lhs
component item.
the scrolledlistbox widget manual entry for details on the rhs
component item.
ed items from the lhs Scrolledlistbox. See the button widget manual entry for details on the lhs button component.
ed items from the rhs Scrolledlistbox. See the button widget manual entry for details on the rhs button component.
current items in the Scrolledlistbox. See the Label widget manual entry for details on the lhsCount label component.
current items in the Scrolledlistbox. See the Label widget manual entry for details on the rhsCount label component.
package require Iwidgets 4.0
iwidgets::disjointlistbox .dlb
pack .dlb -padx 10 -pady 10 -fill both -expand yes