FLTK logo

Re: [fltk.general] Re: can I change the default attributes so I can set"global attributes"

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.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: can I change the default attributes so I can set"global attributes" Albrecht Schlosser Oct 02, 2022  
 
On 10/2/22 05:42 roger tunnicliffe wrote:
I have been thru Enumerations and I can't find the variable so how to do I set all box types to FL_THIN_UP_BOX globally
Thx

That's not possible because most of the FLTK widgets *assign* a boxtype in their constructors or inherit that assignment from their base classes.

Manolo explained a way to derive your own classes with some special assignments. This is standard C++ class inheritance applied to FLTK widgets.

If you're going to include FLTK in your language you'll probably need to do more of such "manipulations" of FLTK classes to fit your needs. A thorough understanding of FLTK widgets and their hierarchies caused by C++ inheritance (which is an important topic in itself) is really recommended.


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/9429bf28-e40b-87e0-e6e4-c05af305b71c%40online.de.
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'.