Promotic

onMousePress - event of the PmaPanel object

Description:
The event is triggered after pressing, releasing or double-clicking the left mouse button if the mouse cursor in on this window. The fact if the event is triggered by pressing, releasing or by left mouse button double-clicking can be obtained from the pEvent.Action parameter.
This method/property/event is considered obsolete and is functional only if the "Level of integration of the panel viewer and the local application" configurator is set to full - FULL access from scripts to the whole application (only for VBScript) and if the "Enable multiple opening of local panel" configurator IS NOT SET.
Parameters:
pMe(Object) Reference to the PmaPanel object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
pEvent.Action - (Long) Indication of pressing or releasing the button.
0 - releasing the mouse button
1 - pressing the mouse button
2 - left mouse button double-click
pEvent.Ctrl - (Boolean) Indication of concurrent pressing the Ctrl key.
pEvent.Shift - (Boolean) Indication of concurrent pressing the Shift key.
pEvent.Alt - (Boolean) Indication of concurrent pressing the Alt key.
pEvent.X - (Long) Position of the mouse cursor on X-axis relative to the left upper corner of the Pmg object (in pixels).
pEvent.Y - (Long) Position of the mouse cursor on Y-axis relative to the left upper corner of the Pmg object (in pixels).
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.Action == 0)
{
// do something if the mouse button is released
if (pEvent.Ctrl)
{
// if moreover the Ctrl key has been pressed, then do even something more
}
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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