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

Home » Public Forums » archive » UNIX Resize Problem
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
UNIX Resize Problem [message #63207] Fri, 31 October 2008 06:40
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

Why continue to bash my head against the wall? Has anyone
been able to solve this problem?

I have an image in a resizeable top-level base widget.
The idea here is that when the window is resized, the
window should retain the same aspect ratio as the image.
So, for example, when the user hits the button that will
force the TLB to fill the display, I will get that event
and instead of making the draw widget holding the image
that size, I will constrain it, and the TLB should shrink
naturally to the size of the draw widget.

This works perfectly on Windows. However, on UNIX, on
a SUSE 10 system, running the KDE window manager, the
TLB "sticks" at the larger, expanded size and will not
automatically resize itself to fit the smaller draw widget.

This appears to have something to do with widget padding
and differences with the reported size of widgets verses
the actual size of widgets, etc. See the article Toward
a Theory of Widget Geometry if you haven't experienced
a headache lately:

http://www.dfanning.com/widget_tips/geotheory.html

I can fool around with "offsets" when I do my resizing,
and I can actually correct the problem. Well, I can correct
it once, or even twice, but so far I haven't been able
to correct it three times. That is to say, the code that
works on the first resize will fail on subsequent resizes
because something about the widgets has changed. Of course,
nothing about the widgets that I can discern has changed,
but I am convinced *something* has changed. (Otherwise,
the only explanation is the phase of the moon.)

This problem has really been ruining my whole week. Has
anyone faced this and discovered a solution?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Plot: idl_guide4 UK_NCAS-Meteo-Library
Next Topic: what to make of read_interfile.pro ?

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

Current Time: Sun Oct 12 12:53:45 PDT 2025

Total time taken to generate the page: 0.32015 seconds