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

Home » Public Forums » archive » Scroll bars in scalable draw widgets
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
Scroll bars in scalable draw widgets [message #11649] Wed, 20 May 1998 00:00 Go to next message
Anders Johannesson is currently offline  Anders Johannesson
Messages: 3
Registered: May 1998
Junior Member
I'm looking for a way to work with a scalable draw_widget
so that I can add scroll bars whenever the user scales the
widget to something smaller than the image. In this application
I don't want to scale the image.

I know that you
can set scroll keywords while defining the draw_widget, but I
cannot find any way of changing this with widget_control
in the event handler modules.

Anders Johannesson
Re: Scroll bars in scalable draw widgets [message #11873 is a reply to message #11649] Wed, 27 May 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Foster (foster@bial1.ucsd.edu) writes:

> Anders Johannesson wrote:
>>
>> I'm looking for a way to work with a scalable draw_widget
>> so that I can add scroll bars whenever the user scales the
>> widget to something smaller than the image. In this application
>> I don't want to scale the image.
>>
>
> If I *really* wanted this feature, I think I would do something
> similar to what David Fanning suggests, except that I would make
> the draw widget a separate popup that can be recreated with or
> without scrollbars when the scaling is changed. That is, whenever
> the user rescales the window such that scrollbars should appear/
> disappear, the entire widget heirarchy for the popup draw widget
> could be destroyed and recreated.
>
> If the draw widget must be integrated within your application
> widget, then you will probably have to live with IDL's default
> behavior (either scrolls all the time or up to a given window size).

Good suggestion, and what I would have recommended, too.
But I checked with RSI about destroying and recreating
widget sub-hierarchies and they gave me a qualified OK.
I'm still a little uncomfortable with it (years of listening
to myself teach, I guess), but it sure worked in this
case and I guess I'm willing to try it again if and when
it makes sense. :-)

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Scroll bars in scalable draw widgets [message #11875 is a reply to message #11649] Wed, 27 May 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Anders Johannesson wrote:
>
> I'm looking for a way to work with a scalable draw_widget
> so that I can add scroll bars whenever the user scales the
> widget to something smaller than the image. In this application
> I don't want to scale the image.
>

If I *really* wanted this feature, I think I would do something
similar to what David Fanning suggests, except that I would make
the draw widget a separate popup that can be recreated with or
without scrollbars when the scaling is changed. That is, whenever
the user rescales the window such that scrollbars should appear/
disappear, the entire widget heirarchy for the popup draw widget
could be destroyed and recreated.

If the draw widget must be integrated within your application
widget, then you will probably have to live with IDL's default
behavior (either scrolls all the time or up to a given window size).

Hope this helps.

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: vector overplot
Next Topic: Re: The Skinny on 24-Bit Color (Long)

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

Current Time: Sat Oct 11 00:39:28 PDT 2025

Total time taken to generate the page: 0.24215 seconds