ParameterEdit Snap-ins

These modules are accessories toParameterEdit

ParameterEdit is used for handling the value of a parameter in the user interface. Snap-Ins are modules that can be paired with ParameterEdit to identify the type of parameter value to be edited along with parameters specific to that use case.

How to Use Snap-Ins

  1. Use the name of the snap-in module in the Modules Array parameter of ParameterEdit.
    (such as, Modules[0] = "ParmEditColor")
  2. Parameters needed for all uses of ParameterEdit (like ParmVal, ParmPtr, Enable) are to be configured in ParameterEdit. Do not include them in your array.
  3. Parameters specific to the snap-in go into the Parameters array.

The Parameters array might look something like this:

Modules[1] = "ParmEditExprNoNormalize"; 
Parameters[1] = New(4);             {allocates memory for an array, specifies a size 4, for 4 parms}
Parameters[1][0] = 0b1001;          {MenuEnables}
Parameters[1][1] = ContainerInfo;   {ContainerInfo}
Parameters[1][2] = #VTypeFont;      {TargetType}
Parameters[1][3] = "FontValue";     {TargetSubType}

The first 11 parameters in the snap-in (Expr, ParmPtr, Enable, Left, Bottom, Right, Top, LabelWidth, LabelHeight, PtrWaitClose, DlgRoot) are configured in ParameterEdit so they are no included in the array.

ParameterEdit Wrappers

VTScada has a growing catalog of ParameterEdit Wrappers. These are modules that are like ParameterEdits that have already been partially configured. Before making your own customized ParameterEdit-- Check out our wrapper options!

AlignmentParameterEdit

NumericParameterEdit

ColorParameterEdit

TagParameterEdit

DurationParameterEdit

TextParameterEdit

MultiCheckboxParameterEdit

TimestampParameterEdit

Parameter Panel

The parameter panel is a generic panel that will handle the setting of Parameters for an object that does not have its own panel.

The object can be a page or a widget. If available, hints are taken from the typing information of the object parameters and suitable Parameter Value choosers are offered.

If the immediate container has parameters then, these too are considered as actual value candidates. However, if there is type information on the object or the container, then these hints are used to filter the set of options, possibly resulting in an empty set.

This panel is designed to be callable from several sources, such as the VGE and the Display Manager.