Create an empty modal dialog window that other uicontrols can be added to.
The dialog box is a figure object with properties as recommended for a dialog box.
The default properties differing from a figure are:
if isempty(allchild(gcbf)), close(gcbf), end
[]
defaultuicontrolbackgroundcolor
off
callback
off
off
none
off
auto
off
on
modal
Multiple property-value pairs may be specified for the dialog object, but they must appear in pairs.
The return value h is a graphics handle to the created figure. object.
Examples:
% create an empty dialog window titled 'Dialog Example' h = dialog ("name", "Dialog Example"); % create a button (default style) b = uicontrol (h, "string", "OK", "position",[10 10 150 40], "callback","delete(gcf)"); % wait for dialog to resume or close uiwait (h);
See also: figure, uiwait.
Package: octave