Generic function
Maps or unmaps the specified frame.
frame-mapped?-setter mapped? frame => mapped?
<boolean>.
<frame>.
<boolean>.
duim-frames
duim-frames
Maps or unmaps frame, that is, displays frame on the screen or removes it from the screen, depending on whether mapped? is true or false. Note that a frame is considered to be mapped if it is anywhere on the screen, even if it is not completely visible because other windows are covering it either partially or completely, or if it is iconized.
The following example creates a simple frame, then displays it and unmaps it using frame-mapped?-setter rather than start-frame and exit-frame. 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>));RETURNframe-mapped?-setter(#t, *frame*);RETURN
frame-mapped?-setter(#f, *frame*);RETURN