Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## grid-shift-focus

Arguments: grid-widget across-p forward-p section-p

Move the keyboard focus within grid-widget by one cell or one section.

The remaining arguments are booleans.

If across-p is true, then the focus is moved horizontally from one grid-column or column-section to another. If it is `nil`, the focus is moved vertically from one grid-row or row-section to another.

If forward-p is true, then the focus is moved either rightward (when across-p is true) or downward. When it is `nil`, the focus is moved either leftward or upward.

If section-p is true, then the focus is moved to the next grid-section. When it is `nil`, the focus is moved to the next cell within the current section. When moving into another grid-section, the focus is placed wherever it was most recently in that section, or else in the upper left cell if that section has not yet had the focus.

If there is no next cell or section in the requested direction, then the focus is not moved at all.

The arrow keys perform this functionality when a grid-widget has the keyboard focus, moving by sections rather than cells if the control key is being held down.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version