Contents Previous Next Subchapters

Easy Dialog Text Fields
Syntax easydlg(captionbuttonsmessagelayout)
See Also textfield

Description
If a field type in the layout argument is "textfield", the corresponding field setting is the initial value for the field. This setting can be any sequence of characters not containing a semicolon.

Program
     clear
     caption = "Textfield_callback"
     buttons = {"Ok", "Cancel"}
     message = "Save study to the specified file"
     layout = "textfield, File, 15, lib\easydlg.oms"
     easydlg(caption, buttons, message, layout)
     function Textfield_callback(button) begin
          print "button =", button
          print "File   =", easydlg("File")
     end

Example
If you paste the program above into the command line, the following dialog will be displayed:
If you change the text field value to lib\easydlg.dat and then select the Ok button, the function Textfield_callback will be called and it will print the text
     button = Ok
     File   = lib\easydlg.dat
in the Command window.