andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

SpinBox.Disable() not disabling the spinbox #300

Open philiplb opened 6 years ago

philiplb commented 6 years ago

Hi, this doesn't seem to disable the spinbox. I can edit the value just fine and nothing is grayed out?

mySpinbox := ui.NewSpinbox(0, 999999)
mySpinbox.SetValue(2)
myBox.Append(mySpinbox, true)
mySpinbox.Disable()
andlabs commented 6 years ago

What platform?

philiplb commented 6 years ago

Good point. :) MacOS 10.13.4

andlabs commented 6 years ago

Yes, NSTextField setEnabled: does not work properly. I'm not sure why; that's an open issue.

philiplb commented 6 years ago

Thanks. :) I see, yeah, plenty of google-Results here with people having the same problem including some workarrounds since years... A bit unfortunate. :)