Spinner gadget?

BlitzPlus Forums/BlitzPlus Programming/Spinner gadget?

This is the box with the two arrows you use to increase or decrease a number in just about every windows app there is. There isn't any way to make one of these, is there?

Someone pointed out a while ago that you can squash a listbox and put numbers in it. However, when you scroll the numbers with the button on the side, you don't actually select anything.

You seek the excellent XLnt II GUI which has that plus much more.

That's just a bad, wrong answer to my question.

You can make one quite easily using a slider gadget next to (or inside, i forget which) a textfield gadget. I use them in FONText, very nice looking.

a bad, wrong answer

Hmm, Yappy already did it, makes the code available for your download/inspection for free (though he does ask you to register it for $15 if you use it for commercial games), and that's wrong?

WendelM - he is asking in a BlitzPlus forum, so its safe to assume he is refering to BlitzPlus GUI stuff. :)

Yeah, I realized that too late <sigh>. Sorry, Halo... <weak grin>

No problem.

I am referring to the box with two small buttons next to it. Open PSP and go to "Resize" to see what I mean.

You can't use sliders when your range to precision ratio is huge. If I have a range anywhere from 3 to 64 and want to be able to set the value to any integer in between, there's no way to fit a slider into a 100-pixel-wide space.

I'll also add that this can't be made with buttons, because it needs to be updated while you are holding the button down.

I was really surprised that this was left out of the initial release.

Are you always a pillock?

Do you mean like this?:


lol@pillock

I can't understand you unless you speak correct American English.

correct American English.

An oxymoron surely?

Ha! Good one... ;)

Still, a proper spinner gadget in B+ could be useful...

Russell