Enables or disables default navigation keys.
Usage
Set_Property(OLECtrlEntID, "OLE.NavKeyEnabled[key]", Boolean)
Values
[True | False]
Default: True
Indices
Index | Description |
---|---|
key | Name of a navigation key (See Remarks) |
Remarks
The NavKeyEnabled property enables or disables keys used to navigate from one cell to another. To use this property, set the index to one of the key names below. Set this property to 1 to activate a navigation key or 0 to deactivate it. By default, all navigation keys are active.
Here are the navigation keys that may be enabled or disabled:
Name | Action |
---|---|
Tab | Moves to the next cell in the current row or the first cell in the next row |
Enter | Moves to the next cell in the current row or the first cell in the next row |
Home | Moves to the first cell in the current row |
End | Moves to the last cell in the current row |
PgUp | Moves to the same cell in the first row of the previous set of visible rows |
PgDown | Moves to the same cell in the first row of the next set of visible rows |
Left | Moves to the previous cell in the current row |
Right | Moves to the next cell in the current row |
Up | Moves to the same cell in the previous row |
Down | Moves to the same cell in the next row |
Shift_Tab | Moves to the previous cell in the current row or the last cell in the previous row |
Ctrl_Home | Moves to the first cell in the first row of the table |
Ctrl_End | Moves to the last cell in the last row of the table |
Ctrl_PgUp | Moves to the same cell in the first row of the table |
Ctrl_PgDown | Moves to the same cell in the last row of the table |
Ctrl_Left | Moves to the first visible cell in the current row |
Ctrl_Right | Moves to the last visible cell in the current row |
Ctrl_Up | Moves to the same cell in the first visible row |
Ctrl_Down | Moves to the same cell in the last visible row |
Ctrl_Enter | Moves out of the table on onto the next control (or previous control if SHIFT is pressed) |
Example
// Disable the ENTER key Set_Property(@Window:".OLE_EDITTABLE", "OLE.NavKeyEnabled[Enter]", 0) // Enable the ability to tab out using CTRL+ENTER Set_Property(@Window:".OLE_EDITTABLE", "OLE.NavKeyEnabled[Ctrl_Enter]", 1)