Promotic

Preconfiguration "Selection and edit color"

Window for selecting and editing the color

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: "/ Panels (PmaPanel) / Color inputbox".
This preconfiguration can be created in the object: PmaFolder, PmaRoot, PmaPanel or PmaWorkspace.

- The preconfiguration creates an object of the PmaPanel type.
- The preconfiguration is created including the panel (object of the PmaPanel type) is functional also as Web panel.


It is loaded as input value into the PmgWEdit object and displayed graphicaly in the PmgRectangle object. The value can be changed by the buttons located in the panel.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the Pma objects tree. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
Default: "SelectColor"
PermissionsOn this tab permissions of the object are defined. See the "Permission" tab of the PmaObject object.
Enable as Web componentSpecifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
Example:
The input value sVal will be displayed in the PmgWEdit and PmgRectangle objects. The RGB string window output value will be returned into the sColor variable.
Open the preconfigured window in the panel in the onButtonUp event of the PmgButton object.
JavaScriptSelect and copy to clipboard

function onClose(ev)
{
if (ev.CloseReason == "ok")
{
Pm.Debug("sColor=" + ev.ReturnValue);
}
}

var oCreator = Pm.CreateView(null, "/SelectColor", "", "target:_blank;dependent:1;size:panel;modal:1;");
oCreator.View.Arguments = "#ff0000";
oCreator.View.onClose = onClose;
oCreator.Open();
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.