Re: Scroll bars in scalable draw widgets [message #11875 is a reply to message #11649] |
Wed, 27 May 1998 00:00  |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|