## Tcl9.0.3/Tk9.0.3 Documentation > Tk Commands > raise

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

### NAME

raise — 積重ね順中の窓の順番を変える Change a window's position in the stacking order

### 構文 SYNOPSIS

raise window ?aboveThis?

### 説明 DESCRIPTION

もし aboveThis 引数が省略される場合､この命令は window を積重ね内で全ての兄弟の上に上げる(どの兄弟にも覆われなくなり且つどの兄弟も覆う様になる)｡もし aboveThis が指定される場合､それは窓の経路名でなければならず､ window の兄弟か､ window の兄弟の子孫のどちらかである｡この場合 raise 命令は window を積重ね順の aboveThis (又はaboveThis の祖先､即ち window の兄弟)の直上に挿入する; それにより結局 window は上げられるか下げられる｡ 　　 If the aboveThis argument is omitted then the command raises window so that it is above all of its siblings in the stacking order (it will not be obscured by any siblings and will obscure any siblings that overlap it). If aboveThis is specified then it must be the path name of a window that is either a sibling of window or the descendant of a sibling of window. In this case the raise command will insert window into the stacking order just above aboveThis (or the ancestor of aboveThis that is a sibling of window); this could end up either raising or lowering window.

全ての頂上水準toplevelの窓は互いを考慮して､その相対経路名がどんなであっても､再積み重ねされることがあるが､窓管理譜は再積重ねする要求を尊重することを厳密には義務付けられない｡ All toplevel windows may be restacked with respect to each other, whatever their relative path names, but the window manager is not obligated to strictly honor requests to restack.

マックのOS 上では､縮小化された頂上水準toplevelの窓を本命令で上に上げると元の寸法に回復される｡　　　 On macOS raising an iconified toplevel window causes it to be deiconified.

### 用例 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:

    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"]
    raise .b

### SEE ALSO

lower

### KEYWORDS

obscure, raise, stacking order
Copyright © 1990 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.