Sign in to follow this  
Followers 0
AutID

WinSetTrans only on main gui

3 posts in this topic

WinSetTrans will set the given transparency to all the controls of the GUI. Is there a way to set transparency only on the main gui?
Actually there are ways but I want to avoid creating child guis for the controls. So beside this is there an other way to do this?

I have a GUI with 2 labels. I want to set the transparency of the gui to 1 and keep the transparency of the labels to 255.

 

Share this post


Link to post
Share on other sites



I found a solution on this but I run to another problem now.
Creating a pic and setting it exstyle $WS_EX_TRANSPARENT will to the trick however this will block my window from being able to drag it...

Share this post


Link to post
Share on other sites

Found a solution.
Create a pic ($SS_CENTER) > Disable pic > WinSetTrans(any trans will do since it will make it 100% transparent) > Create an invisible label over the pic and VOILA! The GUI is enabled again and receives messages via the label.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0