|
|
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/ed0a47c5-25ac-5f8b-89e8-f89666101536%40online.de.
[ Direct Link to Message ] | |
|
| |