Skip to content

EDITBOX ​

EDITBOX opens a box where the user can edit text.

Syntax ​

leo-grammar
  CC "AdoScript" EDITBOX text:strValue [ title:strValue ] 
            [ oktext:strValue ] [ fontname:strValue ] 
            [ fontheight:intValue ] [ fileeditor ].

#--> RESULT endbutton:strValue text:strValue

Parameters ​

  • text (strValue) - sets the default text that is contained in the edit box after opening it
  • title (strValue, optional) - the title of the editbox
  • oktext (strValue, optional) - sets the name of the OK button
  • fontname (strValue, optional) - the name of the font
  • fontheight (intValue, optional) - the size of the font
  • fileeditor (modifier, optional) - if given, the EditBox will have buttons to save/load text from/to a file.

Returns ​

  • endbutton (strValue) - contains the name of the button the user pressed to close the dialog.
  • text (strValue) - the edited text

Details ​

See Also ​

Examples ​

asc
CC "AdoScript" EDITBOX text:"Default text ..." 
                title:"Enter your text" oktext:"Click!"
IF (endbutton = "ok") {
   CC "AdoScript" INFOBOX (text)
}

Starts an EDITBOX and lets the user enter some text. When the user clicks the "Ok" button (labeled "Click!"), the text the user entered is printed in an info box. The edit box

EDITBOX

Versions and Changes ​

Available since ADOxx 1.3