MouseDown Event
PLBCMP GUI Only
The MouseDown event occurs when the user presses a mouse button over an object.
Note the following:
The MouseDown event is referenced using an event value of thirteen (13). The equated label in PLBEQU.INC for this event is $MOUSEDOWN.
The Event Result contains the mouse left position times 10,000 plus the mouse top position. The position is based on the top left point of the object.
The Event Modifier contains a value from the following table:
|
Value |
Key Pressed |
|
1 |
ALT |
|
2 |
CTRL |
|
4 |
SHIFT |
|
8 |
Left Mouse Button |
|
16 |
Right Mouse Button |
|
32 |
Double Click |
When using the PL/B Web Server
runtime, the use of the Mouse events for PWS objects can cause unexpected behaviors when using Android
and iOS mobile devices. Please note the following behaviors:
a. If the MouseDown event is registered for a container including WINDOW and PANEL objects, then events
for any children PWS objects on the container are not triggered as normally expected. For example, if
a MouseDown event is registered for a PWS PANEL and there is a PWS BUTTON object on the PANEL, a Click
event for the PWS BUTTON does not occur.
b. If a MouseDown event and a Click event are both registered for a PWS BUTTON, the Click event for
the button does or may not trigger as expected.
See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions
![]() |