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

Home » Public Forums » archive » Re: widget for incrementing/decrementing an integer
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 for incrementing/decrementing an integer [message #61505 is a reply to message #61504] Thu, 17 July 2008 12:17 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 17, 2:02 pm, David Fanning <n...@dfanning.com> wrote:
> Mike Galloy writes:
>> These are called "spinners". I had one of these, but no longer have
>> access to the source code (and a quick Google search didn't turn up
>> anything). They are not too hard to make, I just displayed the images
>> of up and down arrows in resource/bitmaps in a draw widget and handled
>> the events. For extra credit, make the button press 3D and have an
>> acceleration effect when the button is held down.
>
> I've put the one from my Catalyst Library on my web page
> for you to take a look at. It's written as an object, etc.,
> so you won't be able to use it directly. But you are probably
> looking for the guts of the code, anyway, and that is all
> there. The buttons aren't in 3D, but it does accelerate if
> you hold the button down for a second or so. :-)
>
>   http://www.dfanning.com/misc/spinner__define.pro
>
> And here is a picture of it:
>
>   http://www.dfanning.com/misc/spinner.png
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Here's what the "slider" widget looks like: http://tinyurl.com/5uvnts
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget for incrementing/decrementing an integer
Next Topic: Re: "Variable undefined" error in LOADCT?

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

Current Time: Sun Oct 12 06:14:17 PDT 2025

Total time taken to generate the page: 2.71595 seconds