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 #61508 is a reply to message #61507] Thu, 17 July 2008 11:51 Go to previous messageGo to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 17, 1:32 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> 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

Just use a slider widget - make it "vertical" and make the x and y
size of the slider really small. It works pretty well, actually.
[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:35:35 PDT 2025

Total time taken to generate the page: 1.36366 seconds