Solved

Kylix transparent

Posted on 2004-08-05
3
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

710 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