PSecBit

(Dialog 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 only.
Function Groups: Bitwise Operation,  Graphics,  Security
Related to: GUITransform | PAddressEntry | PAreaSelect | PCheckBox | PColorSelect | PContributor | PDroplist | PEditField | PFileChooser | PPageSelect | PRadioButtons | SelectGraphic | PServerListName | PSpinbox |PTimeZone | PTypeToggle
Format: \DialogLibrary.PSecBit(ParmNum, Title, FocusID[, VertAlign, AlignTitle, DrawBevel])
Parameters:  
ParmNum
Required. Any numeric expression giving the parameter number (from 0) in the caller to alter.
Title
Required. Any text expression to be used as a title for the droplist.
FocusID
Boolean. If this value is FALSE (0), the field will display its current setting, but cannot be opened (i.e. its value cannot be changed), and will appear disabled (grayed-out).
VertAlign
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 the title is included when the vertical alignment is calculated is determined by the value of AlignTitle. The default value is 0.

AlignTitle
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.
DrawBevel
An optional parameter that is any logical expression. if true, a bevelled edge will be added around the control.
Comments

This module is a member of the VTScada 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. 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.

Usual height: 45 pixels.

Example:

GUITransform(50, 400, 450, 100,
             1, 1, 1, 1, 1,
             0, 0, 1, 0,
             0, 0, 0,
             \DialogLibrary.PSecBit(9 { Parm num },
             \GetPhrase("Your_Title") { Title },
             3 { Focus ID },
             1 { Centered },
             0 { Align bevel }));