4D View v16PV ON EVENT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v16
PV ON EVENT
PV ON EVENT
The PV ON EVENT command is used to link a method to a 4D View event. Every time event occurs, the method is executed. The PV Event constants are used to define the event parameter. The called method receives 6 Longint parameters and returns a Boolean in $0: $1: The 4D View area reference $3 can be set to one of the following values (these values are added if a key combination is pressed):
If $0 is True, the event will not be taken into account. Note: If you intend to compile your database, you must declare $0 as Boolean and $1 to $6 as Longints even if some of them are not used. If area is equal to 0, the PV ON EVENT command will be applied to all new 4D View areas. In this case, it is better to pass this command in the On Startup Database Method, which is executed when the database is opened. To uninstall the on event method, simply call the PV ON EVENT command with an empty string in the last parameter. See the examples for the PV VALIDATE CURRENT CELL, PV GET PREVIOUS ACTIVE CELL, PV GET CELL FIELD, PV Get on event method, and PV SAVE DOCUMENT commands. The user clicks on the column header to carry out a sort. The PM_Event method is used to find out which column has been sorted and in what order. //Installation of the method that will be called during the pv on column sort event: A double-click on a column header causes the column to be resized. However, a double-click generates a sequence of two events: pv on clicked then pv on double clicked. `Installation of the method that will be called during the pv on clicked event
See also
|
PROPERTIES
Product: 4D View
HISTORY
Modified: 4D View 2004.1 ARTICLE USAGE
4D View Language ( 4D View v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||