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 
Return to the default flat view Create a new topic Submit Reply
Re: Scroll bars in scalable draw widgets [message #11873 is a reply to message #11649] Wed, 27 May 1998 00:00 Go to previous messageGo 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/
[Message index]
 
Read Message
Read Message
Read Message
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: Sun Oct 12 11:08:51 PDT 2025

Total time taken to generate the page: 1.12408 seconds