Generic function
Starts the specified frame.
start-frame frame #key owner mode => status-code
<frame>.
false-or(<frame>). Default value: #f.
one-of("modal", #"modeless", #"system-modal"). Default value: #f.
<integer>.
duim-frames
duim-frames
Starts frame, optionally setting the owner of the frame and the mode in which it will run.
The function start-frame dynamically binds an <abort> restart around the event loop for the frame that is started. The restart allows the event loop to be re-entered, and enables any callbacks run from the frame to signal an <abort> (via the abort function, for instance), in order to terminate execution of the current callback and return to event processing. This facility is useful for implementing operations that cancel gestures and for debugging DUIM applications from Dylan debuggers.
The following example creates a simple frame, then displays it. You should run this code in the interactor, pressing the RETURN key at the points indicated.
define variable *frame* =
make(<simple-frame>, title: "A frame",
layout: make(<button>));RETURNstart-frame(*frame*);RETURN