diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-06-18 21:58:37 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-06-18 21:58:37 (GMT) |
commit | 5c890e60ea61704d56cbf00d28155c16c7a2860d (patch) | |
tree | 9b03b5d994b774c45832fb52878c33130c72ef73 /doc/raise.n | |
parent | 0b772657c0f563b66f30475242189d3137a559f3 (diff) | |
download | tk-5c890e60ea61704d56cbf00d28155c16c7a2860d.zip tk-5c890e60ea61704d56cbf00d28155c16c7a2860d.tar.gz tk-5c890e60ea61704d56cbf00d28155c16c7a2860d.tar.bz2 |
Added example
Diffstat (limited to 'doc/raise.n')
-rw-r--r-- | doc/raise.n | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/doc/raise.n b/doc/raise.n index 534aa12..0591a50 100644 --- a/doc/raise.n +++ b/doc/raise.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: raise.n,v 1.2 1998/09/14 18:22:59 stanton Exp $ +'\" RCS: @(#) $Id: raise.n,v 1.3 2004/06/18 21:58:37 dkf Exp $ '\" .so man.macros .TH raise n 3.3 Tk "Tk Built-In Commands" @@ -30,9 +30,22 @@ In this case the \fBraise\fR command will insert \fIwindow\fR into the stacking order just above \fIaboveThis\fR (or the ancestor of \fIaboveThis\fR that is a sibling of \fIwindow\fR); this could end up either raising or lowering \fIwindow\fR. +.SH EXAMPLE +Make a button appear to be in a sibling frame that was created after +it. This is is often necessary when building GUIs in the style where +you create your activity widgets first before laying them out on the +display: +.CS +button .b -text "Hi there!" +pack [frame .f -background blue] +pack [label .f.l1 -text "This is above"] +pack .b -in .f +pack [label .f.l2 -text "This is below"] +\fBraise\fR .b +.CE .SH "SEE ALSO" -lower +lower(n) .SH KEYWORDS obscure, raise, stacking order |