AlignmentParameterEdit
(VTScada-Layer function. Must be called with a leading backslash.)
| Description: | Wrapper of ParameterEdit which makes for easy addition of a ParameterEdit control to a panel for selecting tags |
| Returns: | Self |
Usage: ![]() |
Steady State only. |
| Function Groups: | Basic Module, Variable |
| Related to: | ParameterEdit | ColorParameterEdit | NumericParameterEdit |TagParameterEdit | TextParameterEdit |
Format: ![]() |
\AlignmentParameterEdit(Left, Bottom, Right, Top, ParmVal, ParmDef, Title, PtrWaitClose, DialogRoot, PTypeIdx, TitleWidth, ShowDrawnTagProperty, ID[, IsVAlign ]) |
| Parameters: |
| Left |
| Required. Any numeric expression for the left edge of the object. |
| Bottom |
| Required. Any numeric expression for the bottom edge of the object. |
| Right |
| Required. Any numeric expression for the right edge of the object. |
| Top |
| Required. Any numeric expression for the top edge of the object. |
| ParmVal |
| Required. The parameter value to be altered. Typically, one element of the array of Parms passed to the panel. |
| ParmDef |
| Required. The parameter defining structure. Typically, one element of the array of parameter definition structures. |
| Title |
| The title to display |
| PtrWaitClose |
| Wait to close Typically provided by the panel module. |
| DialogRoot |
| Root dialog calling this control Typically provided by the panel module. |
| PTypeIdx |
| Index of the Parameter type selection |
| TitleWidth |
| Optional, number of pixels allotted for the width of the title. |
| ShowLinkedTagProperty |
| Optional Boolean. Set true to show "Linked Tag Property". Defaults to TRUE |
| ID |
| Focus ID |
| IsVAlign |
| Optional. TRUE to display VAlign instead of HAlign. Default is FALSE |
| Comments: |
... |
Example:
{***** HorizontalAlignment *****}
ParmEditObj[2] = AlignmentParameterEdit(0 + Space { Placement coordinate },
PEBottom[1] + Space + TabHt { Placement coordinate },
#PanelWd - Space { Placement coordinate },
PEBottom[1] + Space { Placement coordinate },
Parms[#HorizAlign] { The Parameter value to alter },
ParmDefs[#HorizAlign] { The code pointer to the parameter },
GetPhrase("HorizAlignmentLabel") { The title to display },
&(SubWaitClose[2]) { Wait to close },
DialogRoot { Root dialog calling this control },
0 { Index of the Parameter type selection },
TitleWidth { Width alloted for the Title },
Invalid { True to show "Drawn Tag Property"
Default = TRUE },
1 { Focus ID },
FALSE { Optional flag, TRUE to display VAlign instead
of HAlign. Default = FALSE });
