OldEvent Event
PLBCMP GUI Only
The OldEvent event is sent to any action routine setup by an ACTIVATE statement.
Note the following:
The OldEvent event is referenced using an event value of nineteen (19). The equated label in PLBEQU.INC for this event is $OLDEVENT.
The event only occurs if the event has not already been processed by action routines setup using the EVENTREG statement.
For a BUTTON object, the Event Result is always a one (1) indicating the BUTTON was clicked.
For a CHECKBOX or RADIO object, the Event Result is a zero (0) or one (1) indicating the current value of the object.
For a CHECKGRP, RADIOGRP, POPUPMENU or DATALIST object, the Event Result is the number of the item selected (one-based). The value is incremented by 200,000,000 if the a double click occurred.
For a DIALOG object, the Event Result is the item number upon which the action occurred. A value of "999" indicates that the close box was clicked.
For an EDITTEXT object, the Event Result is a value from the table below:
|
Value |
Meaning |
|
1 |
Lost Focus |
|
2 |
Lost Focus and data changed |
|
3 |
Gain Focus |
|
4 |
Lost Focus and no data change |
|
5 |
Menu item action will be queued |
|
6 |
Data changed (i.e., character added) |
For a FLOATMENU , MENU, or SUBMENU , the Event Result indicates the number of the item selected (one-based).
For a HSCROLLBAR, VSCROLLBAR or SLIDER, the Event Result indicates the current position. Additionally, the ninth digits indicates the following:
|
Value |
Action was ... |
|
1 |
Line Down |
|
2 |
Line Up |
|
3 |
Page Down |
|
4 |
Page Up |
|
5 |
Slide Box Movement |
|
6 |
At Minimum Position |
|
7 |
At Maximum Position |
For an ICON, MREGION, PICT or SHAPE object, the Event Result indicates the click left position time 1,000 plus the click top position. The position is based on the top-left point of the object. The ninth digit contains a one (1) if the right mouse button was used or a two (2) if a double click occurred.
For a STATTEXT object, the Event Result contains a one if the object was selected by the Alt Keyboard Sequence. Otherwise, the value is the click left position times 1,000 plus the click top position. The position is based on the top left point of the object. Additionally, the ninth digit of the value contains a one (1) if the right mouse button was used or a two (2) if a double click occurred.
For a TABCONTROL object, the Event Result contains the number of the item selected (one-based).
For a TIMER object, the Event Result contains a one (1) indicating the timer has expired.
For an object used in a DRAGITEM;ON instruction, the Event Result is the new left position times 1,000 plus the new top position. Additionally, the ninth digit of the value contains a one (1) if the right mouse button was used or a two (2) if a double click occurred.
For an object used in a DRAGITEM;DROP instruction, the Event Result is the DROPID of the object upon which the object was dropped. Additionally, the ninth digit of the value contains a four (4) if the drag was with the left mouse button was used or a five (5) if the drag was with the right mouse button.
See Also: EVENTREGISTER, Object Events, Object IO Instructions, Object Definitions
![]() |