Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onMousePress - event of object PmPanel

Description:
The event fires on pressing, releasing or double-clicking the left mouse button if the mouse cursor in on this window. The fact if the event has been fired by pressing, releasing or by 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 value and if the Enable multiple opening of local panel configurator IS NOT SET.

Parameters:
pMe(Object) Reference to the Promotic object where the event rises.
pEvent(Object) A referrence 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 relatively to the left upper corner of the item (in pixels).
pEvent.Y - (Long) Position of the mouse cursor in the Y-coordinate relatively to the left upper corner of the item (in pixels).
Example:
If pEvent.Action = 0 Then
  ' do something when the mouse button is released
  If pEvent.Ctrl Then
    ' if moreover the Ctrl key has been pressed, do even something more
  End If
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice