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
[Solved] How to set default font in XMLDialog?
[Solved] How to set default font in XMLDialog?
Last edited by Kukulkan on Fri Nov 03, 2017 12:43 pm, edited 1 time in total.
Re: How to set default font in XMLDialog?
You can use SetGadgetFont(#PB_Default, YourFont) before opening any dialog, and it should use it.
Re: How to set default font in XMLDialog?
Thanks, this seems to work great.
Re: [Solved] How to set default font in XMLDialog?
@Fred,
Thank you for the reply: seems logical.
However, on further consideration, I don't think it would have occurred to me.
Perhaps a note could be made in the manual?
Thank you for the reply: seems logical.
However, on further consideration, I don't think it would have occurred to me.
Perhaps a note could be made in the manual?
DE AA EB
Re: [Solved] How to set default font in XMLDialog?
I will, that's a good idea