4D Write v16

WR Get on event method

Home

 
4D Write v16
WR Get on event method

WR Get on event method 


 

WR Get on event method ( area ; event ) -> Function result 
Parameter Type   Description
area  Longint in 4D Write area
event  Longint in Event code
Function result  String in Name of the installed on event method

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 Type Value Comment
wr on key Longint 0 Key down (including arrow keys, returns, tabs…)
wr on double click Longint 1 A double click
wr on single click Longint 2 A single click
wr on triple click Longint 3 Three clicks
wr on right click Longint 4 A click with the right mouse button
wr on activate Longint 5 4D Write area activated or deactivated
wr on printing Longint 7 Printing document
wr on ruler Longint 8 Ruler modification
wr on compute references Longint 9 Dynamic references modified
wr on close Longint 10 4D Write area or window closed
wr on drag Longint 11 An object is dragged
wr on drop Longint 12 An object is dropped
wr on timer Longint 13 End of a timer cycle

 
PROPERTIES 

Product: 4D Write
Theme: WR Utilities
Number: 89426

 
HISTORY 

Modified: 4D Write 2004.1

 
ARTICLE USAGE

4D Write Language ( 4D Write v16)