GUI for Processing (G4P) updated
in
Library and Tool Development
•
1 year ago
Version 1.7.4 of G4P has Improved handling of GPanel objects.
In particular it adds a new method G4P.setDrawOrder(...) which ensures that GPanel objects are drawn over controls in the sketch, i.e. appear to float over controls drawn on the main surface. This command means that GCombo boxes expand over other controls at the same level. Previously the draw order was the same as the the controls were created.
When a panel or a control on a panel gets the focus then the parent panel is automatically brought to the front. This can also be done under program control with the new bringToFront() method.
The changes also fix a bug where GTextField objects on a GPanel object refused to release focus. They will release focus when a panel or control on a panel takes focus when the mouse button is pressed over it.
In particular it adds a new method G4P.setDrawOrder(...) which ensures that GPanel objects are drawn over controls in the sketch, i.e. appear to float over controls drawn on the main surface. This command means that GCombo boxes expand over other controls at the same level. Previously the draw order was the same as the the controls were created.
When a panel or a control on a panel gets the focus then the parent panel is automatically brought to the front. This can also be done under program control with the new bringToFront() method.
The changes also fix a bug where GTextField objects on a GPanel object refused to release focus. They will release focus when a panel or control on a panel takes focus when the mouse button is pressed over it.