Claus, you need the 'control' keyword:
repeat with n = 1 to the number of controls in this stack
set the textfont of control n of this stack to "someFont"
end repeat
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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution