pMe | (Object) Reference to the PmgObject object where the event rises. |
---|---|
pEvent | (Object) Reference to an object describing detailed information about the specific event.
pEvent.Action - (Long) [for reading] Action type by the left mouse button.
0 - releasing the button
1 - pressing the button
2 - left mouse button double-click pEvent.Shift - (Boolean) [for reading] Indication of concurrent pressing the Shift key.
pEvent.Alt - (Boolean) [for reading] Indication of concurrent pressing the Alt key.
pEvent.FocusIn - (Boolean) [for reading] Indication whether the object gained focus by pressing.
false - The Pmg object had focus before pressing.
true - The Pmg object gained focus by this pressing. pEvent.X - (Long) [for reading] Position of the mouse cursor on X-axis relative to the left upper corner of the Pmg object (in pixels).
For Pmg objects with border (see the "Border width" configurator) the position is counted from this border (i.e. by clicking into the left outline the X coordinate is negative). pEvent.Y - (Long) [for reading] Position of the mouse cursor on Y-axis relative to the left upper corner of the Pmg object (in pixels).
For Pmg objects with border (see the "Border width" configurator) the position is counted from this border (i.e. by clicking into the upper portion of the frame, the Y coordinate is negative). |
if (pEvent.Action == 0)
{
// do something if the left mouse button is released
if (pEvent.Ctrl)
{
// If moreover the Ctrl key has been pressed, then do even something more
}
}