## Tcl8.6.17/Tk8.6.17 Documentation > Tk C API > MoveToplev

### 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
    Tk_MoveToplevelWindow — 頂上水準の窓の位置の調整 Adjust the position of a top-level window
  SYNOPSIS
    #include <tk.h>
    Tk_MoveToplevelWindow(tkwin, x, y)
  引数 ARGUMENTS
    Tk_Window tkwin (入力in)
    int x (入力in)
    int y (入力in)
  説明 DESCRIPTION
  KEYWORDS

### NAME

Tk_MoveToplevelWindow — 頂上水準の窓の位置の調整 Adjust the position of a top-level window

### SYNOPSIS

#include <tk.h>
Tk_MoveToplevelWindow(tkwin, x, y)

### 引数 ARGUMENTS

Tk_Window tkwin (入力in)
  移動すべき頂上水準窓の為の字句｡　 Token for top-level window to move.

int x (入力in)
  tkwin の境界の左上隅画素に関する新しい x-座標､又は､もしあれば､窓管理譜によって tkwin の為に供給された装飾された境界の左上画素｡　 New x-coordinate for the top-left pixel of tkwin's border, or the top-left pixel of the decorative border supplied for tkwin by the window manager, if there is one.

int y (入力in)
  tkwin の境界の左上隅画素に関する新しい y-座標､又は､もしあれば､窓管理譜によって tkwin の為に供給された装飾された境界の左上画素｡　 New y-coordinate for the top-left pixel of tkwin's border, or the top-left pixel of the decorative border supplied for tkwin by the window manager, if there is one.

### 説明 DESCRIPTION

一般的に､窓は自己の位置を設定されるするべきではない; それはその窓を担当する幾何管理譜によってのみ行われるべきである｡頂上水準の窓について窓管理譜は効果的な幾何管理譜である; Tk は応用譜と窓管理譜の間の､応用譜の要望を管理譜に持込む為の相互作用命令符合をもたらす｡頂上水準の窓の望ましい寸法は通常の Tk_GeometryRequest 仕組みを使って伝えられる｡手続函数Tk_MoveToplevelWindow は頂上水準の窓に関する特定の位置を要求する為に応用譜によって使われ得る; この手続函数は wm geometry Tcl 命令への函数に似ているが､負の位置は指定できない｡それは､画面上の特定の位置に現れる様に望む指示項目聚の様な部品によって起動される｡ In general, a window should never set its own position; this should be done only by the geometry manger that is responsible for the window. For top-level windows the window manager is effectively the geometry manager; Tk provides interface code between the application and the window manager to convey the application's desires to the geometry manager. The desired size for a top-level window is conveyed using the usual Tk_GeometryRequest mechanism. The procedure Tk_MoveToplevelWindow may be used by an application to request a particular position for a top-level window; this procedure is similar in function to the wm geometry Tcl command except that negative offsets cannot be specified. It is invoked by widgets such as menus that want to appear at a particular place on the screen.

Tk_MoveToplevelWindow は呼ばれた時､直接には新しい望ましい位置を窓管理譜に渡さない; Tcl_DoWhenIdle の仕組みを使用して､他のすべての顕著な仕事が終わるまで､それはこの行動を遅らせる｡ When Tk_MoveToplevelWindow is called it does not immediately pass on the new desired location to the window manager; it defers this action until all other outstanding work has been completed, using the Tcl_DoWhenIdle mechanism.

### KEYWORDS

position, top-level window, window manager
Copyright © 1990-1993 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.