Link to home
Start Free TrialLog in
Avatar of ginsonic
ginsonicFlag for Romania

asked on

Kill focus rectangle on RadioButton

Exactly what I say in the title. I don't wish to show a dotted rectangle on RadioButton caption. How to stop it ?
Avatar of Mike Littlewood
Mike Littlewood
Flag of United Kingdom of Great Britain and Northern Ireland image

How about setting the focus to another component on the form

SomeComponent.SetFocus;

If you select a radio button manually, you will see the rectangle as you change focus
MikeLittleWood meant something like this

procedure TForm1.RadioButton1Enter(Sender: TObject);
begin
RadioButton1.Checked:=not RadioButton1.Checked;
Button1.SetFocus;
end;
ASKER CERTIFIED SOLUTION
Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I meant remove the radiobutton's caption, not the label's, if you were confused.