Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

frame-mapped?

Generic function

Summary

Returns true if the specified frame is mapped.

Signature

frame-mapped? frame => mapped?

Arguments

frame
An instance of type <frame>.

Values

mapped?
An instance of type <boolean>.

Library

duim-frames

Module

duim-frames

Description

Returns true if frame is mapped, that is, is currently displayed on-screen. 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 exits it. In between starting and exiting the frame, frame-mapped? is called. 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
start-frame(*frame*);RETURN
frame-mapped?(*frame*);RETURN
                       => #t
exit-frame(*frame*);RETURN
frame-mapped?(*frame*);RETURN
                       => #f

See also

frame-mapped?-setter, page 807


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index