Solved

Kylix transparent

Posted on 2004-08-05
3
223 Views
Last Modified: 2010-04-05
Hi,

I have Kylix 3 Enterprise installed on Slackware 10 and I tryed the following:

procedure TForm .FormCreate(Sender: TObject);
begin
  Form1.Brush.Style := bsClear;
  Form1.BorderStyle := bsNone
end;

to try make my form transparent any ideas how i can do this in kylix?
0
Comment
Question by:xDamox
  • 2
3 Comments
 
LVL 4

Expert Comment

by:LMuadDIb
ID: 11730297
if it was delphi all you would have to do is use form TransparentColor & form TransparentColorValue
example:

put 2 TButtons and a Tedit on a form and the following code:

procedure TForm1.Button1Click(Sender: TObject);
begin
  if form1.AlphaBlend then
    form1.AlphaBlend := false
  else begin
    form1.AlphaBlend := true;
    form1.AlphaBlendValue := 150;
  end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  if form1.Color = clBlack then begin
    form1.Color := clBtnFace;
    form1.TransparentColor := false;
  end else begin
    form1.Color := clBlack;
    form1.TransparentColor := true;
    form1.TransparentColorValue := clBlack      ;
  end;
end;

but I dont know anything about Kylix :-/
hopefully this can help you
0
 
LVL 11

Accepted Solution

by:
Jase-Coder earned 50 total points
ID: 11775199
xDamox I think it is something to do with KDE. I was having a look and nothing happened.

I tried

form1.canvas.brush.style := bsClear;

I was having a look at the unit that holds the sytles and there were serveral that might inretest you if your using windows

bsClear
bsDense1
bsDense7.

I have even tried the example in the kylix help files and that never worked. All I can surgest is you use a KDE API
0
 
LVL 11

Expert Comment

by:Jase-Coder
ID: 11775243
I also think the reasin Alphabend doesnt exist in kylix is because that uses windowsAPI to mess with the forms settings
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 161
Best Firemonkey component pack 1 116
FMX enumerated colours 2 115
Press three keys together and trigger a function 3 60
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

790 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