Solved

Radio Group Transpartency

Posted on 2000-05-07
7
1,085 Views
Last Modified: 2012-05-04
Is it possible to make a radio group box transparent? And if so how is it done ??  I have an image on my form and i dont want the box covering the background. Plus   i dont to use single radio buttons!!!  HELP !! URGENT !!!
0
Comment
Question by:Borrt
7 Comments
 

Author Comment

by:Borrt
ID: 2786835
Adjusted points from 100 to 150
0
 
LVL 3

Expert Comment

by:shenqw
ID: 2787296
//Your RadioButton must do like the RadioGroup Component.

unit MyRadioGroupComp;

interface

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

type
  TMyRadioGroup = class(TRadioGroup)
  private
    { Private declarations }
  protected
    { Protected declarations }
    procedure CreateParams(var Params: TCreateParams);override;
  public
    { Public declarations }
  published
    { Published declarations }
  end;

procedure Register;

implementation

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

{ TRadioGroup1 }

procedure TMyRadioGroup.CreateParams(var Params: TCreateParams);
begin
  inherited;
  Params.ExStyle := Params.ExStyle + WS_EX_TRANSPARENT;
end;

end.
0
 

Author Comment

by:Borrt
ID: 2787376
Close but no cigar :)  when entering strings, the standard grey box is visible again!   any other suggestions ???
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 9

Expert Comment

by:ITugay
ID: 2788356
Hi borrt,

In additional you may to try to use TLabel with Transparent property=true instead caption of radiogroup. And then, as usual, write onClick events for TLabel to switch in RadioGroup.

----
Igor.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 150 total points
ID: 2794212
There is a group of components on Torrys
and the Super Page that show how this
is done. Look for TRCntls. Or if you
can't find them, I'll send you a copy
if you e-mail me directly...


0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 2794233
Sorry,
My e-mail address is
eshipman@e-mds.com
0
 

Author Comment

by:Borrt
ID: 2798215
thanks for the email folow up too !!!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now