FL_NORMAL_SIZE = 11;
‘FL_NORMAL_SIZE’ does not name a type
Fl_Fontsize FL_NORMAL_SIZE = 11; /usr/lib/x86_64-linux-gnu/libfltk.a(Fl_Widget.o):(.data+0x0): multiple definition of `FL_NORMAL_SIZE'; /tmp/ccdB
GgUp.o:(.data+0x0): first defined here
Maybe I should explain myself to give some background to what I am trying to do.
I am assembler programmer and have written a programming language called languageONE (my 1st language). It is built on a set of macro's in order to mimic a 3rd generation language. You may visit the site at www.languageONE.com.au if you have any interest in doing so.
Having said that I have been trying to incorporate fltk as a GUI for the language. I believe it is going well but I found C++ to be a very strange abstraction. I am hoping that you are able to bear with me while I deal with it's idiosyncrasies.
I do "goggle" a great deal beforehand but sadly I cannot at the moment tell what is an fltk issue or a C++ issue. I am in fact very close to completing the task so I should not be bothering anyone too much more. Again, I trust you are able to bear with me.
Thanking you in advance for your patience. Cheers Roger
On Saturday, October 1, 2022 at 10:57:28 PM UTC+10 Albrecht Schlosser wrote:
On 10/1/22 14:29 roger tunnicliffe wrote:
> My apologies, I am new to Fltk.
> What I meant was....
> I have a project/system/executable (whatever you want to call it) and
> it might comprise of 2 or windows and lots of widgets.
> Instead of having to set - say the fontsize (or color or any other
> attribute) - individually I want to be able to say "make all font
> sizes 11".
> I know that they seem to default to 14 (correct me if i am wrong) so
> there must be some way to do it.
> Does that make it any clearer. ?
Yes, Roger, it does. But this (setting the widget font sizes globally)
has been explained by Manolo in his reply from Sep 30 together with a
lot of other global initializations:
"All widgets use this font size for their text
Fl_Fontsize FL_NORMAL_SIZE = 14;
you can change the value of this public global variable."
In short: you just need to assign
`FL_NORMAL_SIZE = 11;`
at the beginning of your program, i.e. before all widgets are created.
Note: despite the capital letters this is not a macro, it's a global
variable.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/7c0f1297-81dd-4d49-8d35-314292bfb510n%40googlegroups.com.
[ Direct Link to Message ] |