[Gambas-user] SpinBox into a GridView Cell

Tobias Boege taboege at ...626...
Fri Oct 19 19:23:21 CEST 2012


On Fri, 19 Oct 2012, abbat wrote:
> 
> Hi all,
> 
> Is it possible to have a spinbox into a gridview cell?
> 
> Thanks

No that's not possible, AFAIK, but you can get quite close to it visually.
And figuring this out is really straightforward...

You know: The IDE is written in Gambas.

You observe: In the control properties panel there is a GridView in
which certain controls appear and assist you in editing a control's
properties, like a TextBox (for .Text of TextArea), ComboBox (for
.ReadOnly of TextBox), SpinBox (for .Max of SpinBox), ...

You (should) conclude: It is possible and the IDE contains the code.

More specifically, you will find it in the code for that property panel,
which is app/src/gambas3/.src/Editor/Form/FProperty.class.
Basically, you take a hidden SpinBox, move it over the GridView cell, resize
it so that it perfectly covers that cell and then show it.

Regards,
Tobi




More information about the User mailing list