home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / tcl / tk3.3b1 / doc / MoveToplev.3 < prev    next >
Encoding:
Text File  |  1993-04-01  |  2.9 KB  |  69 lines

  1. '\"
  2. '\" Copyright (c) 1990-1993 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/wish/man/RCS/MoveToplev.3,v 1.3 93/04/01 09:41:44 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS Tk_MoveToplevelWindow tkc
  25. .BS
  26. .SH NAME
  27. Tk_MoveToplevelWindow \- Adjust the position of a top-level window
  28. .SH SYNOPSIS
  29. .nf
  30. \fB#include <tk.h>\fR
  31. .sp
  32. \fBTk_MoveToplevelWindow(\fItkwin, x, y\fB)
  33. .SH ARGUMENTS
  34. .AS Tk_Window tkwin
  35. .AP Tk_Window tkwin in
  36. Token for top-level window to move.
  37. .AP int x in
  38. New x-coordinate for the top-left pixel of \fItkwin\fR's border, or the
  39. top-left pixel of the decorative border supplied for \fItkwin\fR by the
  40. window manager, if there is one.
  41. .AP int y in
  42. New y-coordinate for the top-left pixel of \fItkwin\fR's border, or the
  43. top-left pixel of the decorative border supplied for \fItkwin\fR by the
  44. window manager, if there is one.
  45. .BE
  46.  
  47. .SH DESCRIPTION
  48. .PP
  49. In general, a window should never set its own position;  this should be
  50. done only by the geometry manger that is responsible for the window.
  51. For top-level windows the window manager is effectively the geometry
  52. manager;  Tk provides interface code between the application and the
  53. window manager to convey the application's desires to the geometry
  54. manager.  The desired size for a top-level window is conveyed using
  55. the usual \fBTk_GeometryRequest\fR mechanism.  The procedure
  56. \fBTk_MoveToplevelWindow\fR may be used by an application to request
  57. a particular position for a top-level window;  this procedure is
  58. similar in function to the \fBwm geometry\fR Tcl command except that
  59. negative offsets cannot be specified.  It is invoked by widgets such as
  60. menus that want to appear at a particular place on the screen.
  61. .PP
  62. When \fBTk_MoveToplevelWindow\fR is called it doesn't immediately
  63. pass on the new desired location to the window manager;  it defers
  64. this action until all other outstanding work has been completed,
  65. using the \fBTk_DoWhenIdle\fR mechanism.
  66.  
  67. .SH KEYWORDS
  68. position, top-level window, window manager
  69.