Lisp HUG Maillist Archive

getting the size of a output pane

I am writing a simple program that solves the traveling salesman program
by simulated annealing (Metropolis algorithm).
I wish to plot the cities on screen and the path between them.
To do this I wish to use the entire graphics area of the output-pane.
In order to scale this I need to know the extent of the window.

How do I get this area (width, height)?
(assuming I resize it)

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


Re: getting the size of a output pane

Hello John,

| To do this I wish to use the entire graphics area of the output-pane.
| In order to scale this I need to know the extent of the window.
| 
| How do I get this area (width, height)?
| (assuming I resize it)

The following should do:
    capi:simple-pane-visible-size
    capi:simple-pane-visible-width
    capi:simple-pane-visible-height
--
Sincerely,
Dmitri Ivanov
lisp.ystok.ru


Updated at: 2020-12-10 08:53 UTC