comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: CW_FSLIDER woes

CW_FSLIDER woes
type: item
description: 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.
creator: throop
date: 1999-06-04T07:00:00-00:00