Declaring User Events
\The Sandbox \PB History & Future \New in PB 2 \Painter Features \PowerScript Painter \Declare Menu \User Events
User Events
Object-Level
Functions
Object-Level
Structures

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:

  1. 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.
  2. 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.

  3. 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.
  4. Double-click in the Event ID you want to associate with the name.
  5. 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.

  6. Click the OK button.  The Declare Events window closes and the painter workspace displays.
PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com