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 #61509 is a reply to message #61508] Thu, 17 July 2008 11:32 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jul 17, 12:00 pm, cgoet...@igpp.ucla.edu wrote:
> Hello All,
>
> I'm looking for a good way to create a widget that simply increments
> or decrements an integer (an editable text box with up and down arrows
> on the right hand side of the box). I tried using a text widget with
> scroll bars, but that seems clumsy at best (besides I cannot figure
> out how to remove the horizontal scroll bars). Anyone have a
> suggestion on a nice/clean way to implement that? Is there an existing
> widget that I'm missing?

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.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
[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 05:40:03 PDT 2025

Total time taken to generate the page: 0.32441 seconds