PContributor

(Dialog Library)

Description:

Draws a split list displaying all contributors to a specific tag.

Returns: Nothing
Usage: Steady State only.
Function Groups: Containers and Contributors,  Graphics
Related to: GUITransform | PAddressEntry | PAlmPriority | PAreaSelect | PCheckBox | PColorEdit | PColorSelect | PDroplist | PEditField | PEditName | PFileChooser | PHSliderBar | PHueSelect | PImageSelect | PIPAddressList | PIPListenerGroup | PMultiCheckBox | PPageSelect | PPhraseEdit | PRadioButtons | PSecBit | PSelectObject | PServerListName | PSpinbox | PTimeZone | PTypeToggle | SiteDispParms
Format: \DialogLibrary.PContributor(HolderName, ContainerObj, ContribType, TagType [, Title, FocusID, NoAdd])
Parameters:  
HolderName
Required. Any text expression giving the variable name for container information.
ContainerObj
Required. The object value of the container.
ContribType
Required. Any text expression giving the contribution type.
TagType
Required. Any text expression for the type of Tag for which the contributors are being sought.
Title
An optional parameter that is any text expression to be used as a title for the splitlist.
FocusID
Required. A parameter that is any numeric expression for the focus number of the splitlist and its two buttons. The splitlist will have a focus ID equal to FocusID, the left button will have one of FocusID + 1, while the right button will have a focus ID of FocusID + 2.

If FocusID is 0, the splitlist will display its current setting, but its accompanying buttons will not be able to be selected.
NoAdd
An Boolean optional expression. Set TRUE when the Add button is disabled.
Comments:


This module is a member of the VTScada Dialog Library and must therefore be called from within a GUITransform and prefaced by \DialogLibrary\.
The "P" tools (Pcheck box, PContributor, PColorSelect, PDroplist, and PEditField) were intended only for use in configuration folders and drawing panel modules, and therefore are subject to the system security restraints.

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 tag's name.
For any optional parameter that is to be set, all optional parameters preceding the desired one must be present, although they may be invalid.
This function provides a split list containing the names and descriptions of all contributors stored in HolderName. Double-click on an item in this list to obtain the Properties dialog for the tag. Click on the Add button to add a new contributor of the tag type "PointType", which is owned by "ContainerObj", and which has a contribution type "ContribType". Click on the Delete button to terminate the container/contributor relationship for the currently highlighted contributor. The former contributor is not deleted from the application, or from the database.

Usual height: 200-250 pixels.

Examples:

GUITransform(10, 410, 310, 10,
             1, 1, 1, 1, 1,
             0, 0, 1, 0,
             0, 0, 0,
             \DialogLibrary.PContributor(""              { Holder name      },
                                         Var             { Container object },
                                         ""              { Contributor type },
                                         "AnalogInput"   { Tag type         },
                                         \GetPhrase("Contributors") { Title },
                                         4               { Focus ID         }));