Home »
Public Forums »
archive »
Re: resize draw widget w/o resizing the view?
Re: resize draw widget w/o resizing the view? [message #21113] |
Tue, 08 August 2000 00:00 |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
"Rick Towler" <rtowler@u.washington.edu> wrote in message
news:398F9BFA.1CA3B972@u.washington.edu...
>
> Is it possible to resize a window that contains a draw widget but not
> resize the view that is being displayed in the draw widget?
This is an object graphics view, right? It depends on how the view UNITS and
DIMENSIONS are specified. If UNITS has the value 0 (pixels), 1 (inches) or 2
(centimetres) *and* the DIMENSIONS are non-zero then the view size will
remain constant as the destination device (in this case draw widget) is
resized. If UNITS has the value 3 (relative to window) *or* DIMENSIONS are
zero, then the view will fit itself to the destination.
An IDLgrView defaults to UNITS=0 and DiMENSIONS=[0,0] (I think) but I almost
always use UNITS=2 and non-zero DIMENSIONS (10-12 cm is often about right).
This way I get hard copy output the same size (in centimetres) as what I see
on the screen. I have code that ensures the draw widget always fit tightly
around the view.
---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
|
|
|
Current Time: Wed Oct 08 19:29:18 PDT 2025
Total time taken to generate the page: 0.00413 seconds