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 #61507 is a reply to message #61505] Thu, 17 July 2008 12:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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: Wed Dec 03 06:15:55 PST 2025

Total time taken to generate the page: 0.01426 seconds