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

Home » Public Forums » archive » Re: Slider Question
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: Slider Question [message #35583 is a reply to message #35582] Mon, 07 July 2003 12:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Karthikayan Balakrishnan writes:

> Is there a way to make a slider go in intervals of 5 instead of 1.
> What I mean is this: when I use a slider in a widget, it displays in
> intervals of 1. Is there a way that allows me to start with say 5 and end
> with 100. The second allowable point on the slider is 10, the third 15, the
> fourth 20 and so on. I know that I can multiply by 5 in the event_pro
> procedure but that is not reflected in the slider's label. Any suggestions
> or recommendations?

This is exactly why God made objects. (Well, one
of the *many* reasons, but certainly one of the
most practical.) Write yourself a little compound
widget/object that sets it's own label in units
of 5. You could use a program like FSC_Inputfield
as a rough example:

http://www.dfanning.com/programs/fsc_inputfield.pro

Be careful, though. Once you see how powerful objects
are, and how easy to write, things will never be the
same and your employer will expect even bigger things
from you. :-(

Cheers,

David


--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Re: memory consumption when drawing an idlgrscene object re: junk mail
Next Topic: Re: Variable y-axis sizes in multiplot/ladder?

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

Current Time: Wed Oct 08 19:30:31 PDT 2025

Total time taken to generate the page: 0.00499 seconds