Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

frame-position

Generic function

Summary

Returns the position on the screen of the specified frame.

Signature

frame-position frame => x y

Arguments

frame
An instance of type <frame>.

Values

x
An instance of type <integer>.

y
An instance of type <integer>.

Library

duim-frames

Module

duim-frames

Description

Returns the position on the screen of frame. Coordinates are expressed relative to the top left corner of the screen, measured in pixels.

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-position(*frame*);RETURN

See also

frame-size, page 814

frame-state, page 814

set-frame-position, page 845


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index