• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Getting rid of borders on a Radio Box?

I'm trying to get rid of the border on a Radio Group Box.

I hope that this is an easy question.  I'm a graphic designer for a software company that uses Delphi for programming.  I'm the guy who does the layout of the boxes and other objects.  I don't do any of the coding or editing of the source code I'm merely in it for the design of the final screen.  So a quick and easy fix is what I'm looking for.

Thanks for the quick response!

Schlieper
0
Schlieper
Asked:
Schlieper
  • 2
1 Solution
 
kretzschmarCommented:
hi schlieper,

you can do a descandant object like

unit UnFramedRadioGroup;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, ExtCtrls;

type
  TUnFramedRadioGroup = class(TRadioGroup)
  private
    { Private declarations }
  protected
    Procedure Paint; override;
      { Protected declarations }
  public
    { Public declarations }
  published
    { Published declarations }
  end;

procedure Register;

implementation

procedure TUnFramedRadioGroup.Paint;
begin
  //Nothing and no inherited
end;

procedure Register;
begin
  RegisterComponents('Samples', [TUnFramedRadioGroup]);
end;

end.

meikl
0
 
LischkeCommented:
Another way would be to avoid entirely the radio group and use a panel where you place radio buttons on. The behaviour is the same as with a radio group. Only the currently check button must be determined manually...

Ciao, Mike
0
 
SchlieperAuthor Commented:
Thanks so much, you are my new hero.
0
 
kretzschmarCommented:
thanks for the points, schlieper ;-)
glad to helped you

are we not all heros ?

meikl

ps:
mike's suggestion is also a way,
which results in what you want
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now