[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] was: several fonts in ParaGUI app
From: |
Alexander Pipelka |
Subject: |
Re: [paragui-users] was: several fonts in ParaGUI app |
Date: |
10 Jun 2002 14:24:28 +0200 |
Oops,..
That's a tricky one :)
It isn't working because the label in the radiobutton is a childwidget.
The theme only sets the font of the parent.
I fixed this for 1.0.2. Please checkout from CVS or wait till tomorrow
(RC4).
You can also set the font in your code by:
radiobutton.SetFont("andys/cour.ttf", true);
radiobutton.SetFontSize(20, true);
Thanks for your help
Alex
Am Mon, 2002-06-10 um 11.59 schrieb Himmler Andreas /OI&T:
> Hi!
>
> I found a message with the same question that I have in the archives, but
> your answer did'nt do it...
>
> The goal is to have more than one Truetypefont in an theme.
>
> I've the following entries in my theme-file:
>
>
> <widget>
> <type value="RadioButton"/>
> <object>
> <name value="RadioButton"/>
> .....
> <font name="courier" value="andys/cour.ttf" size="20"/>
> </object>
> </widget>
>
>
> But if I create a radiobutton with the line:
>
> PG_RadioButton Radio1(NULL,1,PG_Rect(261,101,598,30),"TEST");
> Radio1.Show();
>
> the font is the default one.....
>
> What to do here??? Did I forget something?
>
> Or is there another way to get different fonts in my app?
>
> Thanks for your hints and tips in advance!
>
> Bye,
>
> Himmler Andreas
>
>
>