SpinCtrl

  • 1 Replies
  • 14 Views
SpinCtrl
« on: 12 September 2019, 12:13:25 »
SpinCtrl is a popular control that combine SpinButton and one line TextBox. It's not so hard do it in user code but it would be much better to have it out of the box from library.

*

texus

  • *****
  • 1463
    • View Profile
    • Texus's Blog
Re: SpinCtrl
« Reply #1 on: 12 September 2019, 19:05:00 »
I've though about it in the past, but I never got around to actually do it.
It would add even more duplication than there already is in the gui as it must have most functions from both EditBox and SpinButton.

Writing it would also be so much easier if a widget could consist of subwidgets. Right now you either have to manually deal with all events yourself of make the widget inherit from Group which adds several functions to the API that you wouldn't want in your widget. I think I'm going to look into this issue in the near feature. I'm not going to be adding the SpinCtrl widget soon, but at least I'm going to try to make it easier to add in the future.