hwtk::separator
Separator bar.
Format
hwtk::separator - pathName ?option value? …
Description
A hwtk::separator widget displays a horizontal or vertical separator bar.
Standard Options
- -clientdata
- Database name: clientData
- -cursor
- Database name: cursor
- -help
- Database name: help
- -helpcommand
- Database name: helpcommand
- -takefocus
- Database name: takeFocus
Widget-Specific Options
- -orient
- Database name: orient
Widget Command
- pathName configure ?option? ?value option value …?
- Query or modify the configuration options of the widget. 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. If option is specified with no value, then the command returns a list describing the named option: the elements of the list are the option name, database name, database class, default value, and current value. If no option is specified, returns a list describing all of the available options for pathName.
- pathName cget option
- Returns the current value of the configuration option given by option.
- pathName identify element x y
- Returns the name of the element under the point given by x and y, or an empty string if the point does not lie within any element. x and y are pixel coordinates relative to the widget. Some widgets accept other identify subcommands.
- pathName instate statespec ?script?
- Test the widget’s state. If script is not specified, returns 1 if the
widget state matches statespec and 0 otherwise. If script is specified,
equivalent to
if{[pathNameinstatestateSpec]}script
- pathName state ?stateSpec?
- Modify or inquire widget state. If stateSpec is
present, sets the widget state: for each flag in
stateSpec, sets the corresponding flag or clears it
if prefixed by an exclamation point. Returns a new state spec indicating
which flags were changed:
will restore pathName to the original state. If stateSpec is not specified, returns a list of the currently-enabled state flags.setchanges[pathNamestatespec]
pathNamestate$changes
Example
#::hwtk::separator
hwtk::dialog .d -title "::hwtk::separator"
set recess [.d recess]
pack [hwtk::frame $recess.left] -side left
pack [hwtk::frame $recess.right] -side right
pack [hwtk::separator $recess.sep] -orient vertical] -side left -fill y -expand true
pack [hwtk::label $recess.left.l -text "Left"]
pack [hwtk::label $recess.right.r -text "Right"]
.d post