Navigation: ABC Library Reference > BrowseClass > BrowseClass Properties >====== ArrowAction (edit-in-place action on arrow key) ====== | |
ArrowAction | BYTE |
The ArrowAction property indicates the action to take when the end user presses the up or down arrow key during an edit-in-place process. There are three types of actions that ArrowAction controls:
what to do with any changes (default, save, abandon, or prompt),
what mode to use next (continue editing or revert to non-edit mode),
what column to edit next (current column or first editable column).
The specified actions are implemented by the Ask method. Set the actions by assigning, adding, or subtracting the following EQUATEd values to ArrowAction. The following EQUATEs are in ABBROWSE.INC:
ITEMIZE,PRE(EIPAction)
Default EQUATE(0) !save according to the Ask method
Always EQUATE(1) !always save the changes
Never EQUATE(2) !never save the changes
Prompted EQUATE(4) !ask whether to save the changes
Remain EQUATE(8) !continue editing
RetainColumn EQUATE(16) !maintain column position in new row
END
Example:
BRW1.ArrowAction = EIPAction:Prompted !ask to save changes
BRW1.ArrowAction = EIPAction:Prompted+EIPAction:Remain
!ask to save, keep editing 1st editable column
BRW1.ArrowAction = EIPAction:Remain+EIPAction:RetainColumn
!default save, keep editing same column
See Also: Ask