Hi
Radiogroup1.SetFocus just sets the focus to the Radio group and not pass it on to the active radiobutton and you cannot compile RadioGroup1.Controls[i].SetFocus. Looked on google and found the code below. You may need to code to make sure that the itemindex in not -1.
 
(RadioGroup1.Controls[RadioGroup1.ItemIndex] as TRadioButton ).SetFocus;
Regards
Warren
 
-----Original Message-----
From: Paul Mckenzie [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 July 2003 04:07 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: TDBRadioGroup

Unfortunately that only sets the Selected item but does not set the focus rectange for the selected item.
 
Regards
Paul McKenzie
Analyst Programmer
SMSS Ltd.
 
----- Original Message -----
Sent: Monday, July 14, 2003 3:47 PM
Subject: Re: [DUG]: TDBRadioGroup

Hi Paul
 
Use the TRadioGroup ItemIndex property.
 
Todd.
----- Original Message -----
Sent: Monday, July 14, 2003 3:39 PM
Subject: [DUG]: TDBRadioGroup

Hi,
 
How do I set the focus rectangle on the selected item within a TDBRadioGroup.
Or at least the TDBRadioGroup.
 
I need to let user know which Control is selected.
 
Regards
Paul McKenzie
Analyst Programmer
SMSS Ltd.
 

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal - For more information please visit www.marshalsoftware.com

Reply via email to