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

Home » Public Forums » archive » CW_FSLIDER woes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
CW_FSLIDER woes [message #15699] Fri, 04 June 1999 00:00
throop is currently offline  throop
Messages: 8
Registered: August 1998
Junior Member
I'm having some weird behavior with CW_FSLIDER. The situation is that
in some cases, I have to typecast my min & max range settings from
double into float or I'll get an error (and no widget). Anyone else had
this problem, or care to try it out? I'd guess it's a numerical
precision issue when using a narrow range, but my range honestly isn't
_that_ narrow compared with the precision of a float...

The error message when passing floats is
; % WIDGET_SLIDER: VALUE keyword out of allowed range (min <= value <=
max).

Thanks,
-henry
throop@broccoli.colorado.edu

-------

pro sliderbug
doubles = 1 ; doubles=1: stops w/ error message
; doubles=0: works fine
min = 0.77d
max = 0.78d
if (not doubles) then begin
min = float(min)
max = float(max)
end
base = widget_base()
slider = cw_fslider(base,min=min,max=max)
widget_control, /realize, base
xmanager, 'handle', base, /no_block
end

pro handle_event, event
print, event.value
end


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
[Message index]
 
Read Message
Previous Topic: Re: YOURE NOT GOING TO BELIEVE THIS! 6634
Next Topic: Re: OOB array indexing with an array gives no error message

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

Current Time: Fri Oct 10 23:56:40 PDT 2025

Total time taken to generate the page: 0.88123 seconds