Blitz3D+ Command Reference

SetWindowNormalPlacement window,x,y,width,height,dpi,maximized,fallbackWindow

Parameters

window - floating window

x - saved left edge in physical screen pixels
y - saved top edge in physical screen pixels
width - saved width in physical screen pixels
height - saved height in physical screen pixels

dpi - DPI at which the rectangle was captured

maximized - True restores the window maximized

fallbackWindow - window whose monitor is used if the saved display has been disconnected

Description

Restores a floating window's saved position, size and maximized state.

Use it to put tool windows back where the player left them between sessions. The size is scaled for the destination monitor, the result is fitted inside its work area, and the window is centred on fallbackWindow's monitor when the saved display has been disconnected. Invalid dimensions or handles raise a runtime error.

See the complete 11_Detachable_Panel.bb sample, which tears tabs off into floating windows and docks them back.


See also: WindowNormalX, WindowNormalY, WindowNormalWidth, WindowNormalHeight, WindowDpi.

Index