A cheats way to do this would be to put 'one in the radiobutton and put a TLabel beside it with 2 in it.  This causes some issues with selection (if someone clicks on the 'two' instead of the RadioButton etc), but with a bit of play you should be able to get it working.
 
Rob
 
Software engineer
Wild Software Ltd
Ph 03 377-0495
----- Original Message -----
Sent: Tuesday, January 14, 2003 11:14 AM
Subject: RE: RE: [DUG]: Controlling fonts within a RadioGroup item

RadioButton is a wrapper for a window control, so the painting is handled from the OS. you may find it very difficult to touch this.
you would need to find a pure delphi radio button class that you can manipulate the painting on
-----Original Message-----
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 14 January 2003 11:07 a.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Controlling fonts within a RadioGroup item

Thanks Allan, but not quite what I was after:
I want to be able to have two fonts displayed within the one caption, if possible
eg (if it displays) "one two"

Mark

On 14 Jan 2003 at 10:40, Allan Vergara wrote:

> Access the individual controls within the RadioGroup.
>
>   for i:=0 to RadioGroup1.ControlCount -1 do
>     if TRadioButton(RadioGroup.Controls[i]).Caption = 'Two' then
>       RadioGroup[i].Font.Style:= [fsItalics];
>
> Hope this helps.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark Howard Sent: 14 January 2003 08:24 To: Multiple
> recipients of list delphi Subject: [DUG]: Controlling fonts within a
> RadioGroup item
>
>
> Hi
>
> Can someone suggest how I can set a RadioGroup item caption to
> read:
> one two
> with the two in a strike-through font?
>
> TIA
> Mark
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
>     [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
>
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
>     [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>


--
Forest Production Systems Ltd
Creators of PSLog Harvesting Information System
Web: www.pslog.co.nz

Reply via email to