[Solved] How to set default font in XMLDialog?
Posted: Fri Nov 03, 2017 10:22 am
Hi,
I have several windows with a few hundred gadgets using the XMLDialog feature. Now I was asked to set a specific font to all elements if a specific language is used (Chinese). I wonder how to set this for all gadgets without writing hundreds of lines to use SetGadgetFont() on all gadgets one by one? Or is there a way to loop through all gadgets of a dialogue? But this will slow down the dialogue creation, right?
(only cross-platform solutions)
Kukulkan
I have several windows with a few hundred gadgets using the XMLDialog feature. Now I was asked to set a specific font to all elements if a specific language is used (Chinese). I wonder how to set this for all gadgets without writing hundreds of lines to use SetGadgetFont() on all gadgets one by one? Or is there a way to loop through all gadgets of a dialogue? But this will slow down the dialogue creation, right?
(only cross-platform solutions)
Kukulkan