Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Semi transparent

Status
Not open for further replies.

urosv

Programmer
Mar 3, 2008
10
SI
I need semi transparent TShape. Is it a way to do this in a simple enought way. Dont want to use other components.

 
Set the Brush style of the control to bsClear...would that work for what you're looking for?
 
I have tryed all the "google" stuff but the problem still exists. I Have a form with transparent png image on it. Now i want when the form is shown to see only image ( not anyithing else ). Now when i use your tehnique bsClear etc... the form is behind invisible but the image become nontransparent ?? Any idea..
 
Maybe the communication is unclear...are you wanting a splash screen that is just your png image?
 
Okay, easy enough (or it should be anyway):

1) For the form you are using as a splash screen, set Position to poScreenCenter and borderstyle to bsNone.

2) Put a TImage (or whatever you are using for the PNG image on the form). Position it in the upper left corner of the form and then make it the size you want it to be (preferably the size of the PNG image). Then size the form so there are no scroll bars and only the PNG is visible. Set Stretch to true for the image if necessary.

3) If needed (like if you're putting any loading messages on labels), set Transparent to true so they will show through the image.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top