Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

frame-mapped?-setter

Generic function

Summary

Maps or unmaps the specified frame.

Signature

frame-mapped?-setter mapped? frame => mapped?

Arguments

mapped?
An instance of type <boolean>.

frame
An instance of type <frame>.

Values

mapped?
An instance of type <boolean>.

Library

duim-frames

Module

duim-frames

Description

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.

Example

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>));RETURN
frame-mapped?-setter(#t, *frame*);RETURN
frame-mapped?-setter(#f, *frame*);RETURN

See also

exit-frame, page 785

frame-mapped?, page 805

start-frame, page 850


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index