|
Contents | Previous | Next | Subchapters |
| Syntax |
easydlg(caption, buttons, message, layout) |
| See Also | checkbox |
"checkbox",
the corresponding
field setting
the field setting is the initial value for the field.
It can be either "true" or "false" depending
on whether the box has a check or not.
If the user selects the check box,
the value of this field will change.
clear
caption = "Checkbox_callback"
buttons = {"Ok", "Cancel"}
message = "Save program as the specified file."
layout = { ...
"label, File:, 15, lib\easydlg.mat", ...
"checkbox, Binary, 2, false" ...
}
easydlg(caption, buttons, message, layout)
function Checkbox_callback(button) begin
print "button =", button
print "Binary =", easydlg("Binary")
end
Checkbox_callback will be called and it will print the text
button = Ok
Binary = true
in the Command window.