Re: Tips on Window Resize [message #7542 is a reply to message #7463] |
Wed, 20 November 1996 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
JBob Brown <jbob@snap.med.ge.com> writes:
[ Absolutely fabulous article about Window Resizing ]
Thanks, JBob, for the wonderful information about window
resizing. I want to mention two small caveats, one of which
you note in your article.
First, as you point out, some of this information applies
specifically to the windows you create on your machine.
Windows on other machines, or windows that have had
their attributes changed with the TLB_FRAME_ATTR
keyword can (often will) be different. Be sure you test
this on each machine you run the program on.
If you must write machine-specific code (and sometimes
there is no way around it), you can use the !Version
system variable to determine which machine you are
running on. I usually find that !Version.OS_Family
gives me the information I need, but more specific
information about which the machine and operating
system can be retrieved from !Version if needed.
Second, I would treat the information returned from
Widget_Info with the Geometry keyword gingerly.
I have not found it to be totally reliable in all
cicumstances. I once spent quite a bit of time
writing a geometry tutorial and finally had to give
it up as time wasted. I could not get reliable
information across all platforms. I expect this
to be greatly improved in the next version of IDL.
Thanks again for this contribution.
David
*************************************************
* David Fanning, Ph.D.
* 2642 Bradbury Court, Fort Collins, CO 80521
* Phone: 970-221-0438 Fax: 970-221-4762
* E-Mail: davidf@dfanning.com
*
* Sometimes I go about pitying myself, and all along my
* soul is being blown by great winds across the sky.
* -- Ojibway saying
************************************************
|
|
|