|
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
DragDrop
DragLeave
DragWithin
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
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.
|