I've created my own spinctrl by using a wx.SpinButton and a
wx.TextCtrl.. clicking the spin buttons increments or decrements
numbers in the textctrl in a special manner.
On windows this works fine without problems. On Linux (Ubuntu 9.10)
the spinbutton apparently has a value assigned to it and will grey out
the spin buttons when it reaches either 0 or 100 .. Is there a way I
can disable this? The SetMax and SetMin functions doesnt really work,
the value assigned to the spinbutton changes a lot faster than my
EVT_SPIN_UP and EVT_SPIN_DOWN events that changes values in my
textctrl, when the up or down buttons is pressed down and held down.
You can call SetRange and give it a very large range. Or, since all you care about are the up/down events you can just reset the value to be at the middle of the accepted range every time you get an up/down event.
···
On 12/14/09 4:46 AM, Soren wrote:
Hello,
I've created my own spinctrl by using a wx.SpinButton and a
wx.TextCtrl.. clicking the spin buttons increments or decrements
numbers in the textctrl in a special manner.
On windows this works fine without problems. On Linux (Ubuntu 9.10)
the spinbutton apparently has a value assigned to it and will grey out
the spin buttons when it reaches either 0 or 100 .. Is there a way I
can disable this? The SetMax and SetMin functions doesnt really work,
the value assigned to the spinbutton changes a lot faster than my
EVT_SPIN_UP and EVT_SPIN_DOWN events that changes values in my
textctrl, when the up or down buttons is pressed down and held down.