|
Contents | Previous | Next | Subchapters |
| Syntax |
easydlg(caption, buttons, message, layout) |
| See Also | textfield |
"textfield",
the corresponding
field setting
is the initial value for the field.
This setting can be any sequence of characters not containing a semicolon.
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
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.