Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 29 :: Page 150
Next Lesson: Course 3:: Session 29 :: Page 170

ActiveX Window Control Events

The following table lists ActiveX window control events for which you can write script.
Event Occurs
Activate Just before the window becomes active.
Clicked When the user clicks in an unoccupied area of the window (any area with no visible, enabled object).
Close When the window is closed.
Deactivate When the window becomes inactive.
DoubleClicked When the user double-clicks in an unoccupied area of the window (any area with no visible, enabled object).
Hide Just before the window is hidden.
Key When the user presses a key and the insertion point is not in a line edit.
MouseDown When the user presses the left mouse button in an unoccupied area of the window (any area with no visible, enabled object).
PBMouseMove When the pointer is moved within the window.
PBMouseUp When the user releases the left mouse button in an unoccupied area of the window (any area with no visible, enabled object).
RButtonDown When the user presses the right mouse button in an unoccupied area of the window (any area with no visible, enabled object).
Resize When the user or a script opens or resizes a window.
Show When a script executes the Show function for this window. The event occurs just before the window is displayed.
SystemKey When the insertion point is not in a line edit, and when the user presses alt or alt plus another key.
Timer When a specified number of seconds elapses after the Timer function has been called.
HomePrevious Lesson: Course 3:: Session 29 :: Page 150
Next Lesson: Course 3:: Session 29 :: Page 170