Skip to content

SET_WINDOW_POS ​

SET_WINDOW_POS sets the position of the model window with the passed modelid.

Syntax ​

leo-grammar
CC "Modeling" SET_Window_POS [ model:idValue ] x:intValue w:intValue .


# --> RESULT ecode:intValue
CC "Modeling" SET_Window_POS [ model:idValue ] x:intValue w:intValue .


# --> RESULT ecode:intValue

Parameters ​

  • modelid (idValue) -
  • x (intValue) -
  • w (intValue) -

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. The passed x and y values are pixel.

See Also ​

Examples ​

asc
CC "Modeling" SET_WINDOW_POS x:0 y:0
CC "Modeling" SET_WINDOW_POS x:0 y:0

Sets the position of the current active model window to the top left corner.

Versions and Changes ​

Available since ADOxx 1.3