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

Home » Public Forums » archive » Re: Scrollable Draw Widget Resizing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Scrollable Draw Widget Resizing [message #42131] Thu, 23 December 2004 15:58
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
pulsifer@bigfoot.com writes:

> I am having a lot of trouble getting a Scrollable Draw widget to resize
> correctly. Especially when I make it smaller or larger than a quarter
> of the display.
>
> My Widget Program is going to display a Plot in a scrolling Draw
> Widget. When I initially create the plot and the draw widget, then
> everything looks great. It is only when I drag the window resizer that
> I have a problem.
>
> I get a lot of resize events.

This is typically a function of the window system. On Windows
you turn the option "Show window contents while dragging" off.
On my Windows XP machine I choose the System Control Panel,
the the Advanced Tab, the Performace Options. It is found
elsewhere on other versions of the OS and in other operating
systems. But it is always there somewhere. :-)

> The window also seems to get larger and
> smaller then what I am dragging. It seems to be getting adjusted to
> sizes under someone's control. I can't figure it out. I move the size
> handle a little bit and the size jumps a lot. Usually the scroll bars
> completely or partially disappear. I even tried setting the size to
> less than the event.x and event.y. I tried subtracting 12 and 48 and
> it still sometimes loses the scroll bars.
>
> I am running IDL 5.6 for Mac OS X.

I remember this as a really flaky version of the Macintosh.
In fact, I think I had special Mac-only code in my resizeable
graphics windows to account for this. It wouldn't surprise
me if this version of Mac code didn't report the size of
the top-level base correctly. It took RSI several versions
to get that right.

> I have heard some people delete and
> recreate the draw window, but that seems a little excessive.

Probably someone came up with this method as a work-around for
bugs. It sounds about right, I think. :-)

> I have
> looked at Fanning's and Gumley's books and web sites, but haven't found
> a good solution to this problem yet.

We try to stay far away from Macs. :-)

(Just kidding. Goodness knows I don't want to start an barrage
of articles at *this* time of year!)

> I tried the UNIX hack that someone suggest, but that made it worse.
> Whenever you resize, the draw window shrinks to a really small size for
> any move.

I can't think why it would *shrink*. I can believe it gets
too big. It sounds very much like a bug to me though.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: Scrollable Draw Widget Resizing
Next Topic: Unknown data type

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

Current Time: Sat Oct 11 07:15:59 PDT 2025

Total time taken to generate the page: 0.48363 seconds