tab-to-next

Generic Function

Package: common-graphics

Arguments: widget &optional previous-p

Moves the keyboard focus to the control that comes just after the specified control in the dialog's tab order. If previous-p is true, then the focus goes instead to the previous control in the tab order. When this would result in moving the focus past the last widget or before the first widget, then the focus movement "wraps" to the control at the other end of the tab order.

When defining a custom lisp-widget, the widget will not automatically know to tab to the next or previous widget when the tab key (or shift-tab) is pressed. To make this happen, a virtual-key-down method for the control should call tab-to-next when the data argument is either vk-tab (for tabbing forward) or vk-backtab (for tabbing backward). (It's an anomaly that a shift-tab gesture is denoted as vk-backtab rather than (shift-key vk-tab).

Common Graphics and IDE documentation is described in About Common Graphics and IDE documentation in cgide.htm.

The documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.