|
Contents | Previous | Next | Subchapters |
| Syntax |
easydlg(caption, buttons, message, layout, connection)
|
| See Also | radiobuttons |
"radio",
the row specifies a radio connection.
A row corresponding to a radio connection has the form:
radio, F1, F2, ...
where F1, F2, ..., denote the names corresponding
to fields
in the dialog.
One and only one of the check boxes in the connection is true.
If one of the false boxes is selected,
it is set to true and the others are set to false.
If the true box is selected, no change occurs.
clear
cap = "Radio_callback"
but = {"Ok", "Cancel"}
msg = "Choose an integration method."
lay = { ...
"checkbox, Runge, 2, true", ...
"checkbox, Gear, 2, false", ...
"checkbox, Adams, 2, false" ...
}
connection = "radio, Runge, Gear, Adams"
easydlg( cap, but, msg, lay, connection)
function Radio_callback(button) begin
print "button =", button
print "Runge =", easydlg("Runge")
print "Gear =", easydlg("Gear")
print "Adams =", easydlg("Adams")
end
Gear field and then press the Ok button,
the following text will print in the Command window:
button =", Ok
Runge = false
Gear = true
Adams = false"