Am 17.02.2010 12:47, schrieb Matthias Melcher: > > On 16.02.2010, at 21:48, Edzard Egberts wrote: >> By inheritance it is easy to use the code for adding the >> functionality to existing applications.
Okay, let's talk about future applications. > IMHO, the widget should not contain text attributes at all, neither > for the label nor for any textual type value. Instead it should have > two pointers (which may both be null). > All text attributes should be handled in a class. Also my approach ended up with a class that contains current settings of size and font - it seems to suggest itself. Your suggestion is advancing this and I also think, it's a good idea. > So why repeat the font size and style all over memory? Maybe *two* pointers are a bit wasteful? What do you think of one pointer to a class containing label *and* text attributes? ;o) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

