April 19, 2024, 04:06:49 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Spin Button question

Started by John S, March 13, 2007, 11:18:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

John S

I have a Spin Button used in my program to allow the user to select different layers of soil.   Problem is that you have to click the top "Up" button to move "Down" in the layers (layer numbers increase going down).   

This is not intuitive.  How can I flip that so that Up arrow decreases the layer number and the Down arrow increases the layer number.  I'm hoping that there is a style I can change.

here is the addcontrol statement I'm using:


AxiPile_Tabs.AddControl(CTSPINBUTTON,"",Col0+SPIN, TABHT+LSpc*4, 40, LnHt, 0x10000000|UDS_SETBUDDYINT, 2, SPIN_LAYERNO);


John Siino, Advanced Engineering Services and Software

Bruce Peaslee

I don't know the answer, but what I would try would be the SetRange method with appropriate values.

If this doesn't work, I can search the net tomorrow and see what I can find.
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

John S

That did it!  Thanks Bruce.
That was really simple.
John Siino, Advanced Engineering Services and Software