Manual Pages for UNIX Darwin command on man tk_focusPrev
MyWebUniversity

Manual Pages for UNIX Darwin command on man tk_focusPrev

tkfocusNext(n) Tk Built-In Commands tkfocusNext(n)

NAME

tkfocusNext, tkfocusPrev, tkfocusFollowsMouse - Utility procedures

for managing the input focus.

SYNOPSIS

ttkkffooccuussNNeexxtt window ttkkffooccuussPPrreevv window ttkkffooccuussFFoolllloowwssMMoouussee

DESCRIPTION

ttkkffooccuussNNeexxtt is a utility procedure used for keyboard traversal. It returns the ``next'' window after window in focus order. The focus order is determined by the stacking order of windows and the structure of the window hierarchy. Among siblings, the focus order is the same as the stacking order, with the lowest window being first. If a window has children, the window is visited first, followed by its children

(recursively), followed by its next sibling. Top-level windows other

than window are skipped, so that ttkkffooccuussNNeexxtt never returns a window in

a different top-level from window.

After computing the next window, ttkkffooccuussNNeexxtt examines the window's

-ttaakkeeffooccuuss option to see whether it should be skipped. If so,

ttkkffooccuussNNeexxtt continues on to the next window in the focus order, until it eventually finds a window that will accept the focus or returns back to window.

ttkkffooccuussPPrreevv is similar to ttkkffooccuussNNeexxtt except that it returns the win-

dow just before window in the focus order. ttkkffooccuussFFoolllloowwssMMoouussee changes the focus model for the application to an implicit one where the window under the mouse gets the focus. After this procedure is called, whenever the mouse enters a window Tk will automatically give it the input focus. The ffooccuuss command may be used to move the focus to a window other than the one under the mouse, but as soon as the mouse moves into a new window the focus will jump to

that window. Note: at present there is no built-in support for return-

ing the application to an explicit focus model; to do this you'll have

to write a script that deletes the bindings created by ttkkffooccuussFFoolllloowwss-

MMoouussee. KKEEYYWWOORRDDSS

focus, keyboard traversal, top-level

Tk 4.0 tkfocusNext(n)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™