Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

ChangeWindowBox

Change window position and dimensions.

Declaration

Source position: intuition.pas line 3539

procedure ChangeWindowBox(

  Window: PWindow;

  Left: LongInt;

  Top: LongInt;

  Width: LongInt;

  Height: LongInt

);

Arguments

Window

  

The window to change position/dimension

Left

  

Left edge the window should move to

Top

  

Top edge the window should move to

Width

  

New Width for window

Height

  

New height for window

Description

Makes simultaneous changes in window position and dimensions, in absolute (not relative) coordinates.

Like MoveWindow() and SizeWindow(), the effect of this function is deferred until the next input comes along. Unlike these functions, ChangeWindowBox() specifies absolute window position and dimensions, not relative. This makes for more reliable results considering that the action is deferred, so this function is typically preferable to MoveWindow() and SizeWindow() paired.

You can detect that this operation has completed by receiving the IDCMP_CHANGEWINDOW IDCMP message

The dimensions are limited to legal range, but you should still take care to specify sensible inputs based on the window's dimension limits and the size of its screen.

This function limits the position and dimensions to legal values.

See also

MoveWindow

  

Ask Intuition to move a window.

SizeWindow

  

Ask Intuition to size a window.

ZipWindow

  

Change window to "alternate" position and dimensions.

MoveSizeLayer

  

Position/Size layer


Documentation generated on: 2021-07-30