Link to home
Start Free TrialLog in
Avatar of BananJoe
BananJoe

asked on

transparent radiobutton

how can i make a radiobutton transparent like the TLabel can do.

if you set the form color to clred and the radiobutton color to clgreen you can see the green
i want to just see the text not color :D
Avatar of sybernite
sybernite

type  
  TClearRadioBtn = class( TRadioButton )
  private
  published
    procedure CreateParams( var Params: TCreateParams ); override;
  end;

procedure TClearRadioBtn.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams( Params );

  Params.ExStyle := Params.ExStyle or WS_EX_TRANSPARENT;
end;
Ignore the last post, I got lazy and didn't test the code. :( Sorry
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

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