|
|
The general SCOadmin style for displaying widgets on secondary dialogs is to have right-justified text labels to the left of each widget with a colon following the text label, for example:
Filename: [ ]Different graphical displays and fonts result in varying sizes for the text label, plus the issue of localized text, makes lining up labels and widgets very difficult. A set of convenience functions are supplied to ensure labels and widgets are correctly aligned:Owner: [ ]
The following call implements the described layout:
set alform [SaAlignedForm $dialog.alform \ [list \ [list SCO_GUIAPP_MSG_FILENAME \ [list VtText -value $filename -columns 25] \ ] \ [list SCO_GUIAPP_MSG_OWNER \ [list VtText -value $owner -columns 10] \ ] \ ] \ ]
If you do not want all the widgets to be the same size (for example, to prevent the owner widget from being stretched to 25 columns) you can detatch the right side of the widget from its enclosing form:
VtSetValues [VxGetVar $alform widget2] -rightSide NONE