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

SizeWindow

Ask Intuition to size a window.

Declaration

Source position: intuition.pas line 4178

procedure SizeWindow(

  window: pWindow;

  dx: LongInt;

  dy: LongInt

);

Arguments

window

  

A pointer to the structure of the window to be sized

dx

  

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

dy

  

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

Description

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

ChangeWindowBox

  

Change window position and dimensions.

MoveWindow

  

Ask Intuition to move a window.

WindowToFront

  

Ask Intuition to bring a window to the front.

WindowToBack

  

Ask Intuition to send a window behind others.


Documentation generated on: 2021-07-30