Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

frame-state

Generic function

Summary

Returns the visible state of the specified frame.

Signature

frame-state frame => state

Arguments

frame
An instance of type <frame>.

Values

state
An instance of type one-of(#"detached", #"unmapped", #"mapped", #"iconified", #"destroyed").

Library

duim-frames

Module

duim-frames

Description

Returns the visible state of the specified frame. The return value from this function indicates whether frame is currently iconified, whether it is mapped or unmapped, whether it has been destroyed, or whether it has become detached from the thread of which it was a part.

Example

The following example creates a simple frame, then displays it and tests its position. 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-state(*frame*);RETURN
                   => #"mapped"

See also

frame-position, page 812

frame-size, page 814


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index