Skip to content

GET_WINDOW_POS_SIZE ​

GET_WINDOW_POS_SIZE returns the position x, y and the size w, h of the model window with the passed modelid in pixel.

Syntax ​

leo-grammar
CC "Modeling" GET_WINDOW_POS_SIZE [ modelid:idValue ] .


# --> RESULT ecode:intValue x:intValue y:intValue w:intValue h:intValue

Parameters ​

  • modelid (idValue) -

Returns ​

  • ecode (intValue) - the return variable ecode is set to 0 if setting worked, to 1 if an error occured or the model window is minimized or maximized.
  • x (intValue) -
  • y (intValue) -
  • w (intValue) -
  • h (intValue) -

Details ​

If no modelid is passed, the current active model will be taken.

See Also ​

Examples ​

asc
CC "Modeling" GET_WINDOW_STATE
IF (state != "normal")
{
  CC "AdoScript" INFOBOX ("The current model window is maximized or minimized!")
  EXIT
}
CC "Modeling" debug GET_WINDOW_POS_SIZE

Shows the size and position of the current model window.

Versions and Changes ​

Available since ADOxx 1.3