FLTK logo

Re: [fltk/fltk] Fluid: enhancement for widget_class for extra option: reposition-and-rescale (PR #481)

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 ]

Re: [fltk/fltk] Fluid: enhancement for widget_class for extra option: reposition-and-rescale (PR #481) Etorth Aug 14, 2022  
 

@Albrecht-S

I tested your .fl and looks the Fl_Flex can do what I exactly want, thanks!
A widget more friendly to arbitrary xywh is convenient, like in following situation:

  1. users in a team defines many types of widget class individually, in many files, like:
widget_class_derived_1.fl
widget_class_derived_2.fl
widget_class_derived_3.fl
widget_class_derived_4.fl
...
  1. another person write an mainwindow gui can dynamically load one of above widget class. In the mainwindow.fl it can not know what's the exact size (or size range) that all thoese widget_class_derived_<n> would have, because it's not written by him/her, the mainwindow.fl reserves a fixed size room and hope widget_class_derived_<n> can work well in the room. and can rescale if widet_class_derived_<n> has bigger size than reserved room.

Hope I expressed clear enough to be understood, for now I will migrate to use Fl_Flex.


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/481/c1214443071@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'.