change textfont

Mark Smith mark at maseurope.net
Fri Jan 4 09:56:01 EST 2008


I should have added that if you want all your controls to have the  
same font, then it might be better to set the textFont of all of them  
to empty, so they inherit their font from the stack. Then you can  
change everything just by changing the stack's font.

Best,

Mark

On 4 Jan 2008, at 14:44, Claus Dreischer wrote:

> Hi,
>
> i'm looking for an elegant way to change the font used everywhere  
> in all stacks, fields, buttons, etc. of a programm.
>
> I can't use "repeat for each" because it will only work on chunktype,
> not on fields or buttons.
>
> Does anyone have a elegant function for this?
> I would like not to use something like
>
> on change_font my_new_font
>    set the textfont of btn "button_1" of stack "stack_1" to  
> my_new_font
>    set the textfont of btn "button_2" of stack "stack_1" to  
> my_new_font
>    ...
> end change_font
>
> This is a fall back solution for the cases when revFontLoad fails.
> I then try to use "Arial" and when even this is not present, i use  
> "System".
>
>
> Regards
> 	Claus.
> -- 
> http://www.danasoft.com/sig/dsagsdg.jpg
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list