Draw Widget Resize Flips Vertical Slider

Name: Steve Scheele
E-mail Address: sscheele@scitor.com
IDL version: 5.2
Platform and OS: Windows NT

Description of Behavior: 

Resizing a draw widget, flips vertical sliders up side down.

Example Code: 

None.

Know Workarounds or Fixes: 

Pass an initial value to the slider - this workaround is
apparently machine/OS dependent. It didn't work for me.

[Note from Peter Mason several days later.]

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:

   sl=widget_slider(b0,min=0L,max=10000L,val=10000L,/suppress,uval=2,/vert) 

When 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).

RSI Technical Support Response: 

Known bug.

[Return to Table of Contents]

Copyright © 1999 David W. Fanning
Last Updated 3 March 1999