comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: resize draw widget w/o resizing the view?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: resize draw widget w/o resizing the view? [message #21113] Tue, 08 August 2000 00:00
Mark Hadfield is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Object Graphics slow??
Next Topic: resize draw widget w/o resizing the view?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:29:18 PDT 2025

Total time taken to generate the page: 0.00413 seconds