Events
\The Sandbox \PB History & Future \New in PB 2 \Object Features \Events
Attributes
Events
PictureButton

CloseQuery

    A CloseQuery event occurs when you remove a Window from display (close it).  When you close a window, PowerBuilder queries any active PowerBuilder windows (Child, Popup, and Sheets) to determine the value of Message.ReturnValue.  If the Message.ReturnValue is 1, the window cannot be closed.

    To perform some processing or do some checking before you close the window, set the value of Message.ReturnValue to 1 and then write a script for the CloseQuery event to perform the desired processing.  Be sure to set Message.ReturnValue to 0,  so the window can be closed.

DragEnter

    A DragEnter event occurs when a dragged object is enters a target object.

DragDrop

    A DragDrop event occurs when a dragged object is dropped on a target object.

DragLeave

    A DragLeave event occurs when a dragged object is leaves a target object.

DragWithin

    A DragWithin event occurs when a dragged object is within a target object.

EditChanged (DataWindow only)

    An EditChanged event occurs when a user types in an edit control in a DataWindow.

    TIP:   In the script for the EditChanged event, you can use GetText to obtain the text of the edit control, SetText to replace the text, and SetColumn to set the current column.

Key

    A Key event occurs in a window when the insertion point is not in a line edit and the user presses any key except the Alt key. The keys include Ctrl, Shift, and the function keys.

Resize

    A Resize event occurs when the user or a script opens a window or resizes a DataWindow or a window.

SystemKey

    A SystemKey event occurs in a window when the insertion point is not in a line edit and the user presses Alt key or Alt+ another key.

Selected

    A Selected event occurs when the user selects a MenuItem by:

    Using the arrow keys to move to the item

    Holding down the primary mouse button and moving the pointer to the item but not releasing it over the item.

SQLPreview (DataWindow only)

    An SQLPreview event occurs after a Retrieve, Update, or ReselectRow function call, and immediately before the function is executed.

    The SQLPreview event has action codes that specify what action will take place when the event occurs.  You can use the SetActionCode function to set the action code.  The action codes are:

    0 - (default) Continue.

    1 - Stop processing.

    2 - Skip this request and execute the next request.

    Note:When the Retrieve function triggers the SQLPreview event, the DataWindow has already been reset.  When the Update function triggers the SQLPreview event, the DataWindow has not been reset.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

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