| View previous topic :: View next topic |
| Author |
Message |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Fri Nov 09, 2007 5:00 pm Post subject: Is it possible to make a form Transparent?(Delphi) |
|
|
Just as the topic says I want to make a form about 50% transparent but I've searched on google and no luck...I came back here hoping for some help. Can someone please help?
Thanks.
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Nov 09, 2007 5:07 pm Post subject: |
|
|
AlphaBlend := true;
AlphaBlendValue := random(255);
Also, possible in the object inspector.
0 = Invisible
255 = 100% Visible.
256+ = Back to 0 I think... or same as 255.
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Fri Nov 09, 2007 5:08 pm Post subject: |
|
|
Not sure if you can do it in Delphi, but
| Code: |
Form.Opcaity := Num;
|
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Fri Nov 09, 2007 6:08 pm Post subject: |
|
|
| What if I just wanted the form to be transparent and not the Buttons and such. How would I do that?
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Nov 09, 2007 6:16 pm Post subject: |
|
|
Maybe this should be possible, but I guess you'll have to code your own function.
If you want a completly visible form and not buttons, just set the TransparentColor to true and the Background color to TransparentColorValue's color.
|
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Fri Nov 09, 2007 9:15 pm Post subject: |
|
|
| Thanks Symbol, but when I put a picture on the form how can I make it to where the form moves when you click and drag the picture? Kind of know what I mean?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Fri Nov 09, 2007 9:38 pm Post subject: |
|
|
| Thanks wiccaan. Cleared alot of things for me.
|
|
| Back to top |
|
 |
|