FLTK logo

Re: [fltk.general] Re: can I change the default attributes so I can set"global attributes"

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: can I change the default attributes so I can set"global attributes" Ian MacArthur Oct 01, 2022  
 
On 1 Oct 2022, at 11:14, Manolo wrote:
> 
> Le samedi 1 octobre 2022 à 02:45:54 UTC+2, roger a écrit :
> 
> roger tunnicliffe
> 8:25 AM (2 hours ago) 
> 
> to fltk.general
> Still not quite sure here.
> I checked the documentation (Color & Font functions) and could only find fl_font which seemed to be part of an fl_draw package.
> I expected calls for things like         
>          win2_flag1->textsize(11);    ... but globally 
>         win2_flag1->labelsize(11); .......but globally
> etc...
> 
> Do they exist ?
> 
> I don't know what would be win2_flag1 in your mind. 


Hi Manolo, (and Roger)

No, me neither. I *think* what the OP is looking for is a way to set a font face, size, etc, on a per-window basis, i.e. to set all the widgets in a given window to a specific face. But that’s a guess.

The fltk state globals would affect all windows, not just a specific window, of course.

I suppose it wouldn’t be that tricky to write a loop that would take a window pointer, loop through all it’s children and set the face / size for each?



-- 
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/97453E2F-9554-4358-AABB-78A62B766E1B%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.