Solved

Radio Group Transpartency

Posted on 2000-05-07
7
1,083 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

9 Experts available now in Live!

Get 1:1 Help Now