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

Home » Public Forums » archive » slider size
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 size [message #55678 is a reply to message #55541] Mon, 27 August 2007 10:30 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Loren Anderson writes:

> Thanks. Is there any known way of forcing all values to be available
> in the slider itself? I already have the text box next to it, and can
> get to any value I want - I just want to be able to use the slider to
> get to them easily - preferably without typing.

There is no way (that I know) to force the slider values.

One alternative, though, might be a "spinner" widget. This
is a compound widget that has a text box, with the value
of the spinner, next to a couple of buttons with images
of up and down arrows on them. When you click the up arrow
the spinner increases by some set increment. (One, in your
case.) If you hold the button down, the increment "spins"
very quickly. It is nearly as fast as a slider for most
applications, and takes up far less space.

This would give you practice building your own
compound widgets. Something every widget programmer ought
to know how to do anyway! :-)

I have one coded up for my Catalyst Library, so I could
help with the "spin it" part of the event handler, if you
get stuck with that.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Programmatic size adjustment of widgets under Windows vs. UNIX (was "Natural size of explicitly-sized widget")
Next Topic: Re: Cannot install ENVI 4.3 on Ubuntu Linux 7.04 (x86_64)

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

Current Time: Fri Oct 10 10:00:28 PDT 2025

Total time taken to generate the page: 0.64158 seconds