version 2004.1 (Modified)
WR Get on event method (area; event) String
Parameter | Type | Description | |
area | Longint | 4D Write area | |
event | Longint | Event code | |
Function result | String | Name of the installed on event method |
Description
The WR Get on event method command allows knowing the name of the on event method installed by WR ON EVENT for the event defined by the event parameter in the specified 4D Write area.
If no on event method has been installed, an empty string ("") is returned.
In the event parameter, pass a value indicating the event for which to get the method. You can use one of the following predefined constants, located in the WR Events theme:
Constant (value) | Event |
wr on key (0) | Key down (including arrow keys, returns, tabs ) |
wr on double click (1) | A double click |
wr on single click (2) | A single click |
wr on triple click (3) | Three clicks |
wr on right click (4) | A click with the right mouse button |
wr on activate (5) | 4D Write area activated or deactivated |
wr on printing (7) | Printing document |
wr on ruler (8) | Ruler modification |
wr on compute references (9) | Dynamic references modified |
wr on close (10) | 4D Write area or window closed |
wr on drag (11) | An object is dragged |
wr on drop (12) | An object is dropped |
wr on timer (13) | End of a timer cycle |
See Also