FLTK logo

[fltk/fltk] enhancement for widget_class to automaticlaly rescale all subwidgets inside (PR #477)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] enhancement for widget_class to automaticlaly rescale all subwidgets inside (PR #477) Etorth Aug 09, 2022  
 

When using widget_class, in containing window or Fl_Group, we put a Fl_Box as placeholder with a xywh.
And for the widget_class current fluid generates xywh, but when the width and height is bigger than Fl_Box's width and height, there is no auto-rescaling. which makes event handling fails.

This change auto rescale all sub-widgets in widget_class based on the xywh from constructor.


You can view, comment on, or merge this pull request online at:

  https://github.com/fltk/fltk/pull/477

Commit Summary

  • f6c1331 when widget_class in relative mode, this change helps to make all sub-widgets in widget_class automatically rescale

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/pull/477@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.