Hi,
I am new to FLTK (just started to write my first FLTK program). I am using
version 2.0.x-r6101 under Win XP/Mingw. I have compiled the fltk libraries from
sources using MinGW/Msys.
My problem is that I am not able to set the font size for the menubar. The code
for menubar creation is:
------------------- code ----------------------
fltk::MenuBar *mbar;
fltk::ItemGroup *fmenu;
mbar = new fltk::MenuBar(0, 0, 800, 30);
mbar->begin();
fmenu = new fltk::ItemGroup("&File");
fmenu->begin();
new fltk::Item("&Open", fltk::COMMAND + 'o', (fltk::Callback *) open_cb );
new fltk::Item("&Save", fltk::COMMAND + 's', (fltk::Callback *) save_cb );
new fltk::Item("Save &As...", fltk::COMMAND + 'a', (fltk::Callback *)
saveas_cb);
new fltk::Item("&Quit", fltk::COMMAND + 'q', (fltk::Callback *) quit_cb, 0 );
fmenu->end();
mbar->end();
------------------------------------------------
It works OK and the menubar is visible and working. However, when I try to set
the font size for the menus using 'mbar->labelsize(N)' or 'fmenu->labelsize(N)'
(N is the desired size, actually 16), nothing happens. I also tried setting the
font size of individual menu items, but it does not work either. Unfortunately,
the documentation is rather poor for this version and says nothing about the
above subject.
I would appreciate if somebody could tell me how to do this properly.
Thanks!
Laszlo Menczel
SZeged, Hungary
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk