On Sat, Sep 12, 2009 at 7:58 PM, Albrecht Schlosser
<[email protected]>wrote:

> Rasmus Lindén wrote:
> > First, let me describe what led me to my problem. I installed FLTK 2,
> > thinking a bit that it was the latest and greatest. I played around with
> it
> > a bit, and it was working fine, but I read a bit more and realized that
> FLTK
> > 1.3 was where the development and stability was.
>
> That's bad, sorry for the inconvenience. We're about to improve this.
>
> > So I downloaded FLTK 1.3
> > and installed it, the prebuilt binaries in the test folder looks like
> this:
> > http://img186.imageshack.us/img186/3373/testbuttons.png
> >
> > but when I compile my own applications, it looks like this:
> > http://img232.imageshack.us/img232/2629/73491787.png
> >
> > (when I compiled my own applications with FLTK2, they looked like the
> test
> > binaries)
> >
> > I am on a Windows XP SP3 system and I use MinGW to compile.
> >
> > Does anyone know what the issue might be? Can I somehow force the more
> > 'Windows' look?
>
> You probably didn't use
>
>  window->show(argc, argv);
>
> to show the first window. This call loads the system default look, while
>
>  window->show();
>
> (without argc,argv) doesn't.
>
> You can also call Fl::get_system_colors() before showing the main window
> (see the link below [1]). Another nice feature is to use a scheme, e.g.
> Fl::scheme("gtk+") [2] before showing your window. If you're using
> show(argc,argv), then you can also use the commandline option -s "gtk+"
> or -s "plastic" to do the same without calling Fl::scheme() in your
> program.
>
> Albrecht
>
> [1]
> <http://www.fltk.org/doc-1.3/classFl.html#ed0a7958eebf1491685040be87490947
> >
> [2]
> <http://www.fltk.org/doc-1.3/classFl.html#15a061056c940e811090976cbd733305
> >
>

Thanks, the Fl::get_system_colors() solved it. And thanks for the Fl::scheme
tip.

I am really liking FLTK so far, finally a GUI toolkit that is easy to wrap
your head around.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to