@quark I would like to add a couple of my own classes to G4P or perhaps request them to be added
They are both quite simple but I can’t seem to find a way to get the same functionality and look using G4P alone.
- “Pallet” : A simple “container” for child buttons/fields, the buttons all having the same dimensions and arranged in a line horizontally.
The Pallet to have a folding action such that when closed it shows just the button at position 1.
In some ways this is similar to a GPanel but without any Tab and could be autosized by taking size of one button and the button count.
- NumberInputField : TextField that is designed to only accept keyed number input and use of scrollwheel over the field in order to increment/decrement the value.
I understand we can take a GTextField and filter the input for only numbers and then mouse event & handlers to deal with scrolling the value, but given how common it is to have a input field just used for numbers wouldn’t it make sense to have a class just for this ?
I’ve managed to bodge up versions of both these controls, but really I would like them to be part of G4P so they play nice with other controls and I can just use one GUI library.
Guessing… I would need to rebuild G4P (using Netbeans for example) in order to achieve this or can I get away with just creating my own classes that extend the GAbstractControl ?