SCO Visual Tcl Reference Guide
Chapter 3, SCO Visual Tcl - graphical scripting language

Form class options

Form class options

The following options are specific to forms.

-fractionBase integer (NA)
Specifies the denominator used in calculating the relative position of an object within a form. The numerator is the ``distance'' given when specifying options such as -topSide, -rightSide, -leftSide, and -bottomSide. The default value is 100.

-horizontalSpacing integer (CS)
Sets the space between the left and right sides of the objects inside a form. The default value is 5 pixels in graphical mode, and 1 character in character mode.

-marginHeight int (CS)
Sets the margin between the top or bottom of the objects inside a form. The default value is 10 pixels in graphical mode, and 0 in character mode.

-marginWidth int (CS)
Sets the margin between the left and right of the objects inside a form. The default value is 10 pixels in graphical mode, and 0 in character mode.

-resizable boolean (CS)
Specifies whether or not the form will resize if one of the widgets inside it grows or shrinks. The default is True.

If you have a label that is going to have several different length strings displayed in it, you may want to use -recomputeSize FALSE. This option (described under ``Label class options'') will ensure that the label does not resize every time a different length string is displayed. If you allow the label to resize, the form will also resize around it unless you have specified the -resizable FALSE option on your form. When you use -recomputeSize FALSE on your label, make sure that your label is the size you want it to be when it is created. You can do this by using attachments to the form or other widgets, or you can specify the width of the label.

-verticalSpacing integer (CS)
Sets the space between the top and bottom of objects. The default value is 5 pixels in graphical mode, and 0 in character mode.