You can re-theme individual widgets by wrapping them in a C++ class
        in the app code.

        I also have some vague memory of there being a way to hook into
        FLTK's drawing routines from an app to affect all widget drawing,
        which I /think/ involved some function pointers. I can't remember
        where there's example code, but I think some code was made available
        here on the newsgroup some years ago. If I find it, I'll follow up,
        and maybe add it to the cheat page/fltk examples dir.

        But as far as /externally/ providing themes (ie. just providing images,
        and/or techniques that don't involve code changes), I'm quite sure
        1.x doesn't support this. Not sure about 2.x.


[email protected] wrote:
> On 11/12/10 08:00, Sparkaround wrote:
>> Is it possible to create a custom theme without patching fltk?
> 
> What version of fltk?
> And what do you actually mean by theme? There seem to be variant 
> interpretations of just whet is meant by theme...!
> 
> Anyway, all that aside, and discounting the theme support in fltk-2 as 
> it seems to be frequently (currently?) broken, then I'd say that you can 
> achieve a lot simply by subclassing your widgets and doing a little work 
> in the draw() methods to create your new look - I've done this, and Greg 
> has some neat examples on on cheat pages (see his Aqua-style tabs demo 
> for one example, though he has others.)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to