Re: Porting Unix to NT problem 1 - Widget_Base YSIZE [message #16457] |
Mon, 26 July 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Manuel J.S uarez (suarezm@isunet.net) writes:
> I have a compound widget for tracking position in a georeferenced image.
> Position can be tracked by Lat/Lon, projection coordinates and/or line/sample.
> At the top of my widget I have 3 checkboxes for selecting which position
> fields I want to view. I resize my widgets and place the field boxes based on
> which boxes are checked. For calculating the YSIZE of the top level base, I
> sum up the YSIZES of the selected fields and the YSIZE of the row of check
> boxes. This all works beautifully under unix. However, under NT, while the
> position boxes all get mapped/unmapped and placed properly, the top level base
> does not get resized properly. It is as though YSIZE is including the space
> taken up by the window title bar as though it were SCR_YSIZE. Is this a known
> cross-platform quirk? Do I just have to deal with it by adding some padding
> when I run on NT or is there a more appropriate way?
It is probably one of those delightful cross-platform quirks
(see recent articles about sizing widgets just in the past
couple of weeks).
But it is a rare application, indeed, when I've needed to size
the top-level base. Normally that base just fits itself around
whatever is inside of it. (Another way of saying this, is that
the top-level base is a row or column base.) It could be that you
are writing inherently non-cross-platform compatible code. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|