[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Misc. Bugs & Problems
"Steve Scheele" <firstname.lastname@example.org> wrote:
> Bug: Resizing a draw widget, flips vertical sliders up side down.
> Workaround: Pass an initial value to the slider - this workaround is
> apparently machine/OS dependent. It didn't work for me.
I think I have a genuine workaround for NT. Using IDL 5.2 / WinNT, with a
widget that contains a menu, draw widget and vertical slider the full height
of the draw widget... I initially create the slider with:
handling the main widget's resize call, I find I have to do:
widget_control,sl,set_slider_max=0L,set_slider_min=10000L The astute reader
will notice that the min and max are now the reverse of what was used in the
creation call, and that seems to balance out whatever happened to the poor
thing during the resize. (Well, on NT at least.) I think it keeps on
working too (i.e., for any further resizes).
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own