Events for the PowerBuilder window ActiveX

The PowerBuilder window ActiveX can respond to certain events occurring within the child window. These are outbound events, which execute first within the PowerBuilder window and then in the PowerBuilder window ActiveX. You can add JavaScript or VB Script code that responds to these events. The events are listed in Table 34-4.

Table 34-4: PowerBuilder window ActiveX events

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 the user presses Alt or Alt plus another key

Timer

When a specified number of seconds elapses after the Timer function has been called