Re: Moving Realized Widgets [message #13925] |
Tue, 29 December 1998 00:00 |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Allan Beihl wrote:
>
> Is there any way to force a widget to move once realized?
>
> IDL help states that :
>>> it is best to avoid this style of programming. Although these keywords are
> usually honored, they are merely hints to the widget toolkit and might be
> ignored.
>
> Allan Beihl
Allan -
I thought you might be interested in my POS_WIDGET.PRO routine that
lets you position a widget in various ways, most in relation to
a parent widget. It will at least give you an idea of how to use
screen and widget geometry to position things.
You can use this routine to position widgets before or after they
have been realized.
You can download this at:
ftp://bial8.ucsd.edu/pub/software/idl/share/idl_share.tar.gz
There is a file POS_WIDGET.DOC documentation file.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|
Re: Moving Realized Widgets [message #13936 is a reply to message #13925] |
Wed, 23 December 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Allan Beihl (beihl@ti.com) writes:
> In general I concur. Unfortunately this really throws a wrench into a
> project I have been working on (and off) for the couple of months. I have
> been writing a IDL "Foundations" Class library, similar in functionality to
> MFC on windows. While creating a collapsible list box container class, I
> came upon the need to move base widgets after they are realized. Bad news
> for me.
I certainly wouldn't give up on this until after I had tested
it a little. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Moving Realized Widgets [message #13938 is a reply to message #13936] |
Wed, 23 December 1998 00:00  |
Allan Beihl
Messages: 3 Registered: November 1998
|
Junior Member |
|
|
David Fanning wrote in message ...
> Allan Beihl (beihl@ti.com) writes:
>
>> Is there any way to force a widget to move once realized?
<*snip*>
> Still, you can't *always* move things
> on *all* window managers.
>
> The bottom line is to not get too hung up on where things
> are positioned. Users wielding mice often have ideas of
> their own that don't always correspond to your completely
> understandable aesthetic sense.
>
> Happy Holidays!
>
> David
>
In general I concur. Unfortunately this really throws a wrench into a
project I have been working on (and off) for the couple of months. I have
been writing a IDL "Foundations" Class library, similar in functionality to
MFC on windows. While creating a collapsible list box container class, I
came upon the need to move base widgets after they are realized. Bad news
for me.
Thanks anyhoo,
Allan
|
|
|
Re: Moving Realized Widgets [message #13939 is a reply to message #13936] |
Tue, 22 December 1998 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Allan Beihl (beihl@ti.com) writes:
> Is there any way to force a widget to move once realized?
Sure. If I have a customer that is slow to pay his bill,
I like to write a little timer event that at random times
will move the application to some other location on the
display. Drives 'em crazy. They pay up quickly. :-)
> IDL help states that :
>>> it is best to avoid this style of programming. Although these keywords are
> usually honored, they are merely hints to the widget toolkit and might be
> ignored.
IDL has gotten much better at this than it used to be.
I find that these "dangerous" things are almost always
carried out successfully these days. I even wrote a droplist
widget this week that can destroy itself and come back to life
in a new incarnation. Still, you can't *always* move things
on *all* window managers.
The bottom line is to not get too hung up on where things
are positioned. Users wielding mice often have ideas of
their own that don't always correspond to your completely
understandable aesthetic sense.
Happy Holidays!
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|