IonicWind Software

Aurora Compiler => GUI => Topic started by: John S on March 13, 2007, 11:18:53 PM

Title: Spin Button question
Post by: John S on March 13, 2007, 11:18:53 PM
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);


Title: Re: Spin Button question
Post by: Bruce Peaslee on March 13, 2007, 11:58:15 PM
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.
Title: Re: Spin Button question
Post by: John S on March 14, 2007, 12:21:28 AM
That did it!  Thanks Bruce.
That was really simple.