Skip to content

SET_WINDOW_STATE ​

SET_WINDOW_STATE sets the state of the model window with the passed modelid.

Syntax ​

leo-grammar
SetWindowState :	SET_WINDOW_STATE [ model:idValue ] state:stateVal .


statVal	"max" | "min" | "normal


# --> RESULT ecode:intValue
SetWindowState :	SET_WINDOW_STATE [ model:idValue ] state:stateVal .


statVal	"max" | "min" | "normal


# --> RESULT ecode:intValue

Parameters ​

  • modelid (idValue,optional) -
  • state (enumValue) - stateVal, the state value must be "max", "min" or "normal".

Returns ​

  • ecode (intValue) - the return variable ecode is set to 0 if setting worked, to 1 if an error occured.

Details ​

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

Only 1 window can be maximized. The status of the previous maximized window will be set to normal.

See Also ​

Examples ​

asc
CC "Modeling" SET_WINDOW_STATE state:"min"
CC "Modeling" SET_WINDOW_STATE state:"min"

Minimizes the current model window.

Versions and Changes ​

Available since ADOxx 1.3