focusNext.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" Copyright (c) 1994 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: focusNext.n,v 1.2 1998/09/14 18:22:56 stanton Exp $
- '"
- .so man.macros
- .TH tk_focusNext n 4.0 Tk "Tk Built-In Commands"
- .BS
- '" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- tk_focusNext, tk_focusPrev, tk_focusFollowsMouse - Utility procedures for managing the input focus.
- .SH SYNOPSIS
- fBtk_focusNext fIwindowfR
- .sp
- fBtk_focusPrev fIwindowfR
- .sp
- fBtk_focusFollowsMousefR
- .BE
- .SH DESCRIPTION
- .PP
- fBtk_focusNextfR is a utility procedure used for keyboard traversal.
- It returns the ``next'' window after fIwindowfR 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 fIwindowfR are skipped, so that
- fBtk_focusNextfR never returns a window in a different top-level
- from fIwindowfR.
- .PP
- After computing the next window, fBtk_focusNextfR examines the
- window's fB-takefocusfR option to see whether it should be skipped.
- If so, fBtk_focusNextfR 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 fIwindowfR.
- .PP
- fBtk_focusPrevfR is similar to fBtk_focusNextfR except that it
- returns the window just before fIwindowfR in the focus order.
- .PP
- fBtk_focusFollowsMousefR 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 fBfocusfR 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 returning the
- application to an explicit focus model; to do this you'll have
- to write a script that deletes the bindings created by
- fBtk_focusFollowsMousefR.
- .SH KEYWORDS
- focus, keyboard traversal, top-level