Don't forget to hook the OnClick event of the label and change the radio button when it is clicked.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 17 October 2001 13:35 > To: Multiple recipients of list delphi > Subject: RE: [DUG]: Autosize a TRadioButton > > > ---------- Original Message ---------------------------------- > >Hey guys, I'm having a bit of a hard time trying to figure out > how to autosize a radiobutton. What I have is a Radiobutton > component that needs to resize it self depending on the font > size. To make things a little more interesting, my radiobutton > component is multilined. Any suggestions? > > > > Yea, seperate the RadioButton from the Caption. > > ie; drop a TRadioButton on the form and set it's caption to ''. > > Then drop a TLabel on next to it like it belongs, and set it to > Autosize and there you have it (trying to autosize a RadioButton > to that specification is like trying to nail jelly to a tree). > > Don't forget to set the label's thingy to whatsit - So I'm away > from my Delphi - set it so's if you click on it, it clicks and > selects the RadioButton, that way it not only looks like part of > the RadioButton, it acts like it too. > > Steve > ------------------------------------------------------------------ > --------- > 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/