Skip to content

CREATE_OUTPUT_WIN ​

CREATE_OUTPUT_WIN creates a docking window with an output text field.

Syntax ​

leo-grammar
CC "AdoScript" CREATE_OUTPUT_WIN winid:strValue title:strValue

# --> RESULT ecode:intValue .
CC "AdoScript" CREATE_OUTPUT_WIN winid:strValue title:strValue

# --> RESULT ecode:intValue .

Parameters ​

  • winid (idValue) - the ID of the window
  • title (strValue) - the title of the window

Returns ​

  • ecode (intValue) - contains the error code or is 0 in case of success.

Details ​

Creates an docking window. To this window one can then add text and show in this way information to the user.

Line breaks must be added manually by using '\n'

See Also ​

OUT
SET_OUTPUT_WIN_SUBTITLE

Examples ​

asc
CC "AdoScript" CREATE_OUTPUT_WIN winid:"myWindow" title:"Information Window"
CC "AdoScript" SET_OUTPUT_WIN_SUBTITLE winid:"myWindow" subtitle:"new"
CC "AdoScript" OUT winid:"myWindow" text:"Hello world"
CC "AdoScript" CREATE_OUTPUT_WIN winid:"myWindow" title:"Information Window"
CC "AdoScript" SET_OUTPUT_WIN_SUBTITLE winid:"myWindow" subtitle:"new"
CC "AdoScript" OUT winid:"myWindow" text:"Hello world"

Creates a simple and empty output window with the title 'Information Window'. Afterwards it adds the subtitle 'new' which is also shown in the header of the window. Last but not least, the text 'Hello world' is added to the window.

Versions and Changes ​

Available since ADOxx 1.3