Contents Previous Next Subchapters

Easy Dialog Label Fields
Syntax easydlg(captionbuttonsmessagelayout)
See Also addlabel

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

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

If you paste the program above into the command line, the following dialog will be displayed:
If you then select the Cancel button, the function Label_callback will be called and it will print the text
     button = Cancel
in the Command window.