VIEWBOX ​
VIEWBOX opens a view box to display longer text messages.
Syntax ​
leo-grammar
CC "AdoScript" VIEWBOX text:strValue [ title:strValue ]
[ fontname:strValue ] [ fontheight:intValue ]
Parameters ​
text
(strValue) - the text to be displayedtitle
(strValue, optional) - the window titlefontname
(strValue, optional) - name of the font, in which the text is shownfontheight
(intValue, optional) - value defining the size of the used font
Returns ​
none
Details ​
The viewbox waits for the user to press the "Close" button.
After the user clicks "Close", the message window closes and the execution of the AdoScript is resumed.
The fonts, which are available in the operating system are used. Therefore, one should consider, if a font is used which was installed manually. Additionally, the installation on Mac and Linux uses wine, where it is not guaranteed that all fonts from Windows are available.
See Also ​
Examples ​
asc
SET longmessage:"A longer text message:\n\n"
FOR i from:1 to:100
{
SET longmessage:(longmessage+"line no. " + STR i + ".\n")
}
CC "AdoScript" VIEWBOX text:(longmessage) title:"A longer text message:" fontheight:14 fontname:"Times New Roman"
CC "AdoScript" VIEWBOX text:(longmessage) title:"A longer text message:" fontheight:14 fontname:"Calibri"
CC "AdoScript" VIEWBOX text:(longmessage) title:"A longer text message:" fontheight:14
Displays some messages.
Second message box is
Versions and Changes ​
Available since ADOxx 1.3