> I am building a fltk text editor and wondering how to change the style
> of the window and other widgets, like gtk or else.
> The default style under Windows looks pretty simple. So is there a way
> to set the style of a widget or the whole application?
> No method like window->style() exist, and I haven't found an entrance to
> search in fltk offical documentation site.
If you want fancy eye-candy effects, fltk may be the wrong toolkit for your needs.
It doesn't directly support complex themes (by design) though you can build any look you like if you do the widgets yourself.
There are a few built-in "schemes" that cover most general use, so try those. (Check the docs for Fl::scheme(...) to see how that works.)
Then look at what Greg does in these examples to style his own custom widgets...
http://www.seriss.com/people/erco/fltk/Fl_Gel_Tabs/
http://www.seriss.com/people/erco/fltk/Fl_Matte_Button/
You can do fairly fancy stuff with fltk, with a little effort. Here's ZynAddSubFX for example.
http://zynaddsubfx.sourceforge.net/
And there are a lot of other fltk based projects using custom widgets to get a more interesting look.
Selex ES Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************