Re: Re: can I change the default attributes so I can set"global attributes"
Greg Ercolano
Oct 01, 2022
On 10/1/22 15:12, roger tunnicliffe
wrote:
FL_NORMAL_SIZE = 11;
‘FL_NORMAL_SIZE’ does
not name a type
Make sure you've got:
#include <FL/Fl.H>
..at the top of your program.
Fl_Fontsize FL_NORMAL_SIZE = 11;
Yea, no, don't do that. That just tries to /create/ another
global variable of the
same name as the one in FLTK, and fails at link time with the
conflict.
Here's a complete program showing where you should put what:
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.