(VTS Library)
Description: Parameter Setting Security Bit. This module draws a titled, beveled droplist of options for setting the security bit.
Returns: Nothing
Usage: Steady State
Format: \DialogLibrary\PSecBit(ParmNum, Title, FocusID, VertAlign, AlignTitle)
Parameters: ParmNum { numeric } { required } { no default: }
Any numeric expression giving the parameter number (from 0) in the caller to alter.
Title { text } { required } { no default: }
Any text expression to be used as a title for the droplist.
FocusID { numeric } { optional } { default: see note }
An optional parameter that is any numeric expression for the focus number of this graphic. If this value is 0, the droplist will display its current setting, but will not be able to be opened (i.e. its value cannot be changed) and will appear grayed out.
If this parameter is omitted or invalid, the next available focus ID will be assigned.
VertAlign { numeric } { optional } { default: 0 }
An optional parameter that is any numeric expression that sets the vertical alignment of the droplist according to one of the following options:
|
Value |
Vertical Alignment |
|
0 |
Top |
|
1 |
Center |
|
2 |
Bottom |
Whether or not the title is included when the vertical alignment is calculated is determined by the value of AlignTitle. The default value is 0.
AlignTitle { Boolean } { optional } { default: TRUE }
An optional parameter that is any logical expression. If AlignTitle is true (non-0), the title will be included in the calculation for vertical alignment. If AlignTitle is false (0), the title will be added to the editfield after both the editfield and its bevel have been vertically aligned. The default is true.
Comments: This module is a member of the VTS Dialog Library and must therefore be called from within a GUITransform and prefaced by \DialogLibrary\.
This parameter tool expects the first parameter of its calling module to contain an array of tag parameters. It will then set the element indicated by ParmNum to the chosen security bit.
The height of the (unopened) droplist is constant, with the horizontal boundaries of its calling transform defining its width, and the vertical boundaries of its calling transform defining its opened height, which will include the added height of the bevel above the field, but may or may not include the title, depending on the alignment used. Note that if the entire list can be displayed in a smaller area than indicated by the vertical boundaries of the calling transform, the dropped list height will be decreased accordingly. The dropped height of the list will always have a minimum height of 1 line (below the field).
For any optional parameter that is to be set, all optional parameters preceding the desired one must be present, although they may be invalid.
Example:
GUITransform(50, 400, 450, 100,
1, 1, 1, 1, 1,
0, 0, 1, 0,
0, 0, 0,
\DialogLibrary\PSecBit(9 { Parm num },
"Security Bit" { Title },
3 { Focus ID },
1 { Centered },
0 { Align bevel }));
See Also:
PAreaSelect | PCheckbox | PColorSelect | PContributor | PDroplist | PEditfield | PPageSelect | PRadioButtons | SelectGraphic | PSpinbox | PTypeToggle