[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Intuition' (#aros)


Ask Intuition to size a window.


Source position: intuition.pas line 3235

procedure SizeWindow(

  Window: PWindow;

  Dx: LongInt;

  Dy: LongInt





A pointer to the structure of the window to be sized



A signed value describing how much to size the window on the x-axis



A signed value describing how much to size the window on the y-axis


This routine sends a request to Intuition asking to size the window the specified amounts. The delta arguments describe how much to size the window along the respective axes.

Note that the window will not be sized immediately, but rather will be sized the next time Intuition receives an input event, which happens currently at a minimum rate of ten times per second, and a maximum of sixty times a second. You can discover when you window has finally been sized by setting the IDCMP_NEWSIZE flag of the IDCMP of your window.

Intuition now will do validity checking on the final dimensions. To change to new absolute dimensions, or to move and size a window in one step, use ChangeWindowBox().

However, limit checking against window MinWidth, MinHeight, MaxWidth, and MaxHeight was not done prior to V36, and these fields are still ignored (as documented) if you have no sizing gadget (WFLG_SIZEGADGET is not set). The are respected if WFLG_SIZEGADGET is set.

You can determine when the change in size has taken effect by receiving the IDCMP_CHANGEWINDOW IDCMP message.

See also



Change window position and dimensions.



Ask Intuition to move a window.



Ask Intuition to bring a window to the front.



Ask Intuition to send a window behind others.

Documentation generated on: 2017-01-10