Events in user objects
When you build a user object, you can write scripts for any
event associated with that user object.
Events in class user
objects
Most custom class user objects have only constructor and
destructor events.
|
Event |
Occurs when |
|---|---|
|
Constructor |
The user object is created |
|
Destructor |
The user object is destroyed |
Standard class user objects have the same events as the
PowerBuilder system object from which they inherit.
Events in visual user
objects
Standard visual user objects have the same events as the
PowerBuilder control from which they inherit. Custom and external
visual user objects have a common set of events.
|
Event |
Occurs when |
|---|---|
|
Constructor |
Immediately before the Open event of the window |
|
Destructor |
Immediately after the Close event of the window |
|
DragDrop |
A dragged object is dropped on the user |
|
DragEnter |
A dragged object enters the user |
|
DragLeave |
A dragged object leaves the user |
|
DragWithin |
A dragged object is moved within the user |
|
Help |
A user presses the F1 key or clicks the context |
|
Other |
A Windows message occurs that is not a |
|
RButtonDown |
The right mouse button is pressed |
For more about drag and drop, see Application Techniques.