[Gambas-bugtracker] Bug #2763: Spinbox disabled when setting Readonly to True - and others
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Jun 30 14:34:47 CEST 2023
http://gambaswiki.org/bugtracker/edit?object=BUG.2763&from=L21haW4-
Comment #7 by Claus DIETRICH:
Hi Benoít
Just compare it with a ComboBox. If it is set to ReadOnly=True, you can still select items. So it is not disabled. If you don't want the user to change selections in the ComboBox you can set its Enabled - property to False.
Other than the ComboBox, the SpinBox does not differentiate between Readonly=True and Enabled=False. In both cases the SpinBox is fully disabled. So why has ReadOnly been provided? This property is dispensable but it could be provided with some use. ReadOnly=True should inhibit the entry of value in the embedded TextBox only and I see no logic reason, why the incrementing or decrementing of the value should be disabled. If however, you want to disallow this, you can still set Enabled to False.
I also suggest the removal of the Selectall method, because the number is always displayed with inverted color. This doesn't look good and I don't see any reason for it - just compare it with the ComboBox. How would it look like if the contents of a ComboBox would always be displayed as selected (= displayed with inverted colors)?
I hope that you can agree to my arguments and wish you a good weekend.
Claus
Claus DIETRICH changed the state of the bug to: Opened.
More information about the Bugtracker
mailing list