Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 mouse 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 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 object describing detailed information about the specific event.
pEvent.Action - (Long) Indication of pressing or releasing the button.
0 - releasing the button
1 - pressing the button
2 - double-clicking the left mouse button
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 in the X-coordinate relative to the left upper corner of the Pmg object (in pixels).
pEvent.Y - (Long) Position of the mouse cursor in the Y-coordinate 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, do even something more
}
PROMOTIC 9.0.12 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice