System Reference Summary : 6. 4GL System Constants : System Constants : ReasonCode Settings for FrameExec
 
Share this page                  
ReasonCode Settings for FrameExec
The following sections describe the ReasonCode settings for the FrameExec class.
For the Click, ChildClick, Details, ChildDetails, ClickPoint, ChildClickPoint, Properties, ChildProperties, DoubleClick, and ChildDoubleClick Events
Constant Value
Description
Numeric
Equivalent
RC_MOUSECLICK
The user clicked a mouse button.
8
RC_COLLAPSE
The user clicked on a collapse button of the treeview.
47
RC_EXPAND
The user clicked on an expand button of the treeview.
48
RC_NONODE
The user clicked on an area with no node horizontal to it in the treeview.
49
RC_SAMENODE
The user clicked on the selected node in the treeview.
50
RC_CHANGEDNODE
A mouse-click will cause a change in value to the treeview.
51
RC_WHITESPACE
The user clicked on a whitespace area in the treeview.
52
RC_DOUBLECLICK
The user double-clicked a node in the treeview.
53
RC_BITMAP
The user clicked a bitmap of the node in the treeview.
54
RC_CHECKBOX
The user clicked on a checkbox of the node in the treeview.
55
For the Exit, ChildExit, SetValue, ChildSetValue, Entry, ChildEntry, Validate, and ChildValidate Events
Constant Value
Description
Numeric
Equivalent
RC_RETURN
The user pressed a carriage return keystroke.
1
RC_NEXT
The user pressed the Tab keystroke.
2
RC_PREVIOUS
The user pressed the Shift+Tab keystroke.
3
RC_LEFT
The user pressed the left arrow keystroke.
4
RC_RIGHT
The user pressed the right arrow keystroke.
5
RC_UP
The user pressed the up arrow keystroke.
6
RC_DOWN
The user pressed the down arrow keystroke.
7
RC_MOUSECLICK
The user clicked a mouse button.
8
RC_PROGRAM
The 4GL code triggered the event.
17
RC_FIELDFREED
The selection or focus changed by freeing a field.
18
RC_ROWINSERTED
The user selected Insert New Row from a table field option menu.
20
RC_TFSCROLL
The user scrolled a table field.
29
RC_PAGEUP
The user pressed the Page Up key.
32
RC_PAGEDOWN
The user pressed the Page Down key.
33
RC_HOME
The user pressed the Home key.
34
RC_END
The user pressed the End key.
35
RC_SCFIND
The user selected an item in a table field, listview field, or treeview field by typing the first letter of the item (single character find).
42
Note:  When the optionfield has the input focus, the option list can be opened from the keyboard by using either Alt+Up arrow or Alt+Down arrow. Clicking an optionfield, representing the user's final selection, generates a SetValue event with a distinct reason code, RS_MOUSECLICK.
For the ChildMouseDown, MouseDown, ChildMouseUp, and MouseUp Events
Constant Value
Description
Numeric
Equivalent
RC_MOUSELEFT
Left mouse button
58
RC_MOUSELEFTDOUBLECLICK
Left mouse button double-click
59
RC_MOUSEMIDDLE
Middle mouse button
60
RC_MOUSEMIDDLEDOUBLECLICK
Middle mouse button double-click
61
RC_MOUSERIGHT
Right mouse button
62
RC_MOUSERIGHTDOUBLECLICK
Right mouse button double-click
63
For the DragSegment, ChildDragSegment, DragBox, ChildDragBox, Resized, ChildResized, Moved, and ChildMoved Events
Constant Value
Description
Numeric
Equivalent
RC_MOUSEDRAG
The user released a mouse button to complete a drag box or a drag line operation occurred.
16
For Select and ChildSelect Events
Constant Value
Description
Numeric
Equivalent
RC_SELECT
The user selected an object.
10
RC_TOGGLESELECT
The user either selected or unselected an object.
11
RC_GROUPSELECT
An object was selected as part of a group select.
12
RC_PROGRAM
The 4GL code triggered the event.
17
For UnSelect and ChildUnSelect Events
Constant Value
Description
Numeric
Equivalent
RC_SELECT
The user selected an object.
10
RC_TOGGLESELECT
The user either selected or unselected an object.
11
RC_MODECHANGED
A 4GL statement changed the form mode.
13
RC_CHILDSELECTED
A child was selected.
14
RC_PARENTSELECTED
An operation to select the parent field occurred.
15
RC_PROGRAM
The 4GL code triggered the event.
17
RC_FIELDFREED
The selection or focus changed by freeing a field.
18
RC_FIELDORPHANED
A field was unselected because its parent was freed.
19
For the SelectionChanged Event
Constant Value
Description
Numeric
Equivalent
RC_SELECT
The user selected an object.
10
RC_PROGRAM
The 4GL code triggered the event.
17
For the DeleteAllRow, InsertRow, DeleteRow, WindowClosed, WindowIcon, WindowMoved, WindowResized, and WindowVisible Events
Constant Value
Description
Numeric
Equivalent
RC_NOTAPPLICABLE
The reason code is not applicable.
0
Other Reason Codes Unassociated with any Particular Event
Constant Value
Description
Numeric
Equivalent
RC_RESUME
A resume statement in the 4GL caused some events to occur.
9
RC_ROWDELETED
The user selected Delete Current Row from a table field option menu.
21
RC_ROWSALLDELETED
The user selected Delete All Rows from a table field option menu.
22