VtSeparator


Create a horizontal or vertical line

Syntax

VtSeparator object_name [options]

Description

Creates a Separator widget (a horizontal or vertical line). This is typically used to separate other widgets. Returns the widget name.

Options

-horizontal (CS)
Specifies that the Separator should be horizontal.

-length int (CS)
Sets the length of the separator (specified in number of characters) to int in character mode. In graphical mode, set the length of the separator to int times the maximum font width.

-vertical (CS)
Specifies that the Separator should be vertical.

Example

The following code produces a Separator. Two Labels are provided to highlight the Separator.

set app [VtOpen scale]

set form [VtFormDialog $app.form -title "VtScale Demo" ]

VtLabel $form.aboveLabel -label "Above the separator"
VtSeparator $form.scale -leftSide FORM -rightSide FORM
VtLabel $form.belowLabel -label "Below the separator"


VtShow $form
VtMainLoop

This code produces the following:

See also: