OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [tk/] [doc/] [focusNext.n] - Diff between revs 579 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 579 Rev 1765
'\"
'\"
'\" Copyright (c) 1994 The Regents of the University of California.
'\" Copyright (c) 1994 The Regents of the University of California.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
'\"
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
'\"
'\" RCS: @(#) $Id: focusNext.n,v 1.1.1.1 2002-01-16 10:25:49 markom Exp $
'\" RCS: @(#) $Id: focusNext.n,v 1.1.1.1 2002-01-16 10:25:49 markom Exp $
'\"
'\"
.so man.macros
.so man.macros
.TH tk_focusNext n 4.0 Tk "Tk Built-In Commands"
.TH tk_focusNext n 4.0 Tk "Tk Built-In Commands"
.BS
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
.SH NAME
tk_focusNext, tk_focusPrev, tk_focusFollowsMouse \- Utility procedures for managing the input focus.
tk_focusNext, tk_focusPrev, tk_focusFollowsMouse \- Utility procedures for managing the input focus.
.SH SYNOPSIS
.SH SYNOPSIS
\fBtk_focusNext \fIwindow\fR
\fBtk_focusNext \fIwindow\fR
.sp
.sp
\fBtk_focusPrev \fIwindow\fR
\fBtk_focusPrev \fIwindow\fR
.sp
.sp
\fBtk_focusFollowsMouse\fR
\fBtk_focusFollowsMouse\fR
.BE
.BE
.SH DESCRIPTION
.SH DESCRIPTION
.PP
.PP
\fBtk_focusNext\fR is a utility procedure used for keyboard traversal.
\fBtk_focusNext\fR is a utility procedure used for keyboard traversal.
It returns the ``next'' window after \fIwindow\fR in focus order.
It returns the ``next'' window after \fIwindow\fR in focus order.
The focus order is determined by
The focus order is determined by
the stacking order of windows and the structure of the window hierarchy.
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
Among siblings, the focus order is the same as the stacking order, with the
lowest window being first.
lowest window being first.
If a window has children, the window is visited first, followed by
If a window has children, the window is visited first, followed by
its children (recursively), followed by its next sibling.
its children (recursively), followed by its next sibling.
Top-level windows other than \fIwindow\fR are skipped, so that
Top-level windows other than \fIwindow\fR are skipped, so that
\fBtk_focusNext\fR never returns a window in a different top-level
\fBtk_focusNext\fR never returns a window in a different top-level
from \fIwindow\fR.
from \fIwindow\fR.
.PP
.PP
After computing the next window, \fBtk_focusNext\fR examines the
After computing the next window, \fBtk_focusNext\fR examines the
window's \fB\-takefocus\fR option to see whether it should be skipped.
window's \fB\-takefocus\fR option to see whether it should be skipped.
If so, \fBtk_focusNext\fR continues on to the next window in the focus
If so, \fBtk_focusNext\fR continues on to the next window in the focus
order, until it eventually finds a window that will accept the focus
order, until it eventually finds a window that will accept the focus
or returns back to \fIwindow\fR.
or returns back to \fIwindow\fR.
.PP
.PP
\fBtk_focusPrev\fR is similar to \fBtk_focusNext\fR except that it
\fBtk_focusPrev\fR is similar to \fBtk_focusNext\fR except that it
returns the window just before \fIwindow\fR in the focus order.
returns the window just before \fIwindow\fR in the focus order.
.PP
.PP
\fBtk_focusFollowsMouse\fR changes the focus model for the application
\fBtk_focusFollowsMouse\fR changes the focus model for the application
to an implicit one where the window under the mouse gets the focus.
to an implicit one where the window under the mouse gets the focus.
After this procedure is called, whenever the mouse enters a window
After this procedure is called, whenever the mouse enters a window
Tk will automatically give it the input focus.
Tk will automatically give it the input focus.
The \fBfocus\fR command may be used to move the focus to a window
The \fBfocus\fR 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
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.
into a new window the focus will jump to that window.
Note: at present there is no built-in support for returning the
Note: at present there is no built-in support for returning the
application to an explicit focus model;  to do this you'll have
application to an explicit focus model;  to do this you'll have
to write a script that deletes the bindings created by
to write a script that deletes the bindings created by
\fBtk_focusFollowsMouse\fR.
\fBtk_focusFollowsMouse\fR.
.SH KEYWORDS
.SH KEYWORDS
focus, keyboard traversal, top-level
focus, keyboard traversal, top-level
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.