On 11/12/10 23:20, Greg Ercolano wrote:
>
>       You can re-theme individual widgets by wrapping them in a C++ class
>       in the app code.

This is what I'd advise, except that...

>       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.

The best place (IIRC) to see it used to be the old "shiny" demo in 
fltk-1.1, but that was dropped from 1.3, and does not get built in 1.1 
variants either as the GL hooks only really work on a few platforms 
(maybe SGI's? I can't remember...)

Hmmm - no, just checked and we actually dropped it from 1.1 way back 
when... I see it is still in the fltk-1.0.11 tarball though, and it 
still sort of works... And also still doesn't actually work right on 
this linux box (or on win32...) Oh well. I always thought it was cool, 
shame it doesn't quite work!

Anyway, pointless rambling aside, download the old 1.0.11 tarball (it is 
tiny so easy to do!) and check out how it sets the box types and drawing 
of the custom widgets. That bit works OK, it's the fancy GL stuff that 
isn't reliably portable!

-- 
Ian

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to