On 1/7/22 6:22 AM, 'Matthias Melcher' via fltk.general wrote:
Not that I know of, but IMHO what you describe should be the default behaviour.
I believe to support the user fully redefining positioning of
the internal input/pulldown widgets, the currently private
methods inp_{xywh}() and menu_{xywh}() would
need to be virtual and protected so that a
subclass could redefine them, and thus redefine the
positioning during e.g. resizing.
Also, it'd probably be good if the align() method
for the Fl_Group could be changed for LEFT or RIGHT
aligned for the input field, with the current orientation being
the default.
I'll try making a patch and if it works as expected, and if
so, add it.
On 1/7/22 6:22 AM, 'Matthias Melcher' via fltk.general wrote:
Not that I know of, but IMHO what you describe should be the default behaviour.
I believe to support the user fully redefining positioning of the internal input/pulldown widgets, the currently private methods inp_{xywh}() and menu_{xywh}() would need to be virtual and protected so that a subclass could redefine them, and thus redefine the
positioning during e.g. resizing.Also, it'd probably be good if the align() method for the Fl_Group could be changed for LEFT or RIGHT aligned for the input field, with the current orientation being the default.
I'll try making a patch and if it works as expected, and if so, add it.
I'm not sure if changing the meaning of the align() member is such a good idea.
However, this is a specialized widget and we could add another flag member if necessary. It's now a good time to change the ABI before FLTK 1.4.0 will be released.
Opened issue #361 for this as a request
for enhancement (RFE):
https://github.com/fltk/fltk/issues/361
I'll follow up there with patch suggestions and test program(s).