|
You can declare user events:
In the Window Painter, for a window or an object in the window
In the User Object Painter, for the user object or an object in the user object
In the PowerScript Painter, for the current object.
To declare an event:
- Select UserEvents from the Declare Menu. The Declare Events window displays. The name and ID of the standard PowerBuilder events, the events in the underlying windowing system that are not PowerBuilder events, and the valid event IDs display grayed.
TIP: If you are declaring events for a custom user object, select an open space in the user object before you select UserEvents from the Declare Menu.
- Enter the name of the event you are declaring in the Event Name box at the end of the list. The event IDs are no longer grayed.
- Double-click in the Event ID you want to associate with the name.
TIP: You can select the ID of any event that does not currently occur in the object. The list includes all the events supported by PowerBuilder or the underlying windowing system and 75 custom events (Pb_custom01 to Pb_custom75). PowerBuilder uses the custom IDs to identify user-defined events internally.
- Click the OK button. The Declare Events window closes and the painter workspace displays.
|