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

Home » Public Forums » archive » Re: widget_slider with odd integers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: widget_slider with odd integers [message #31517 is a reply to message #31515] Mon, 22 July 2002 11:46 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 22 Jul 2002 10:52:03 -0700, Thierry Savin wrote:

> Hi all,
>
>
> Does anyone know how I could create a slider widget that produces only
> odd integers ?
>

Use /SUPPRESS_VALUE, and compute in your event callback:

my_odd_value=2*ev.value+1

for use as the real value for display in a suitably located widget_label,
and for whatever data context you intend. You can of course extend this
same method to do all manner of interesting things, like create floating
sliders (though many already exist in libraries), or non-linear sliders.

Good luck,

JD
[Message index]
 
Read Message
Read Message
Previous Topic: Re: unwanted color bands in image display
Next Topic: Linking multiple files...

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

Current Time: Fri Oct 10 04:54:00 PDT 2025

Total time taken to generate the page: 2.87936 seconds