Preconfiguration "Basic mathematic calculator"
The window contains the calculator with basic mathematic operations. It is handy when using touch screens.
This preconfiguration can be activated when creating a new object (e.g. by
"New object ..." in the context menu of the object or by pressing the
Insert key after selecting the object).
This preconfiguration is included in the
"/ Panels (PmaPanel) / Keyboard" group.
This preconfiguration can be created in the
PmaFolder,
PmaRoot,
PmaPanel,
PmaWorkspace or
PmaPrototype object.
- 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.
In the
onPanelStartEnd event the input value of the parameter is loaded into the display (
PmgString). In the
onPanelStopEnd event after pressing the
"OK" button the value from
PmgString is returned back to the object that called the
CreateView method.
The
CreateView method can be used for opening the panel. After opening the panel, the value will be in default state (0), but the computed value cannot be returned.
These configurators can be set before the preconfiguration is created:
The name of created object | Name of the object created in the Pma object 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 first character must not be a number.
Default: "Calc" |
Permissions | On this tab permissions of the object are defined. See the "Permission" tab of the PmaObject object. |
|
Enable as Web component | Specifies 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. |
---|
Example2:
Open the preconfigured window in the panel in the
onButtonUp event of the
PmgButton object. Opening the panel with no input and output value.
JavaScriptVBScriptSelect and copy to clipboard
Pm.CreateView(null, "/Calc", "", "target:_blank; size:250,350;");
Pm.CreateView Empty, "/Calc", "", "target:_blank; size:250,350;"
This preconfiguration is used in
PreCfg - Preconfiguration examples.