EVENTFILTER Property
PLBCMP GUI Only
The EVENTFILTER property allows the program to control the events processed by an EDITTEXT or EDITNUMBER object. The property uses the following format:
EVENTFILTER={value}
Note the following:
EVENTFILTER may be used in CREATE, SETPROP, or GETPROP statements of an EDITTEXT or EDITNUMBER object.
{event} is a string variable or literal that uses character positions and values to allow or disallow a given event for an object.
Six (6) events may be controlled. The first byte corresponds to event one, the second byte corresponds to event two, and so on.
Each event is allowed if the corresponding byte is a 'Y' or 'y'. It is disallowed if it is a 'N' or 'n'.
If EVENTFILTER is not present, the default state is 'YYYNNN', where the first 3 events are enabled and the next three are disabled.
The string positions correspond to events as follows:
|
Offset |
Event |
|
1 |
Object has lost focus. Data may or may not have been changed. |
|
2 |
Object has lost focus. Data did change. |
|
3 |
Object has gained focus. |
|
4 |
Object has lost focus. Data did not change. |
|
5 |
Object has lost focus because a menu item has been selected. |
|
6 |
A character has been entered into the object. This allows activation of the {routine} for each keystroke. |
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |