health Posted April 15, 2008 Share Posted April 15, 2008 I have a GUI with WS_EX_LAYERED and a .gif in this GUI as the background... the gif is transparent and constitutes the GUI. But when I'm changing the transparency of the gui with WinSetTrans, the gif will be non-transparent. the background of the gif will be simply white and this is not what I want. How I fix that? Link to comment Share on other sites More sharing options...
rasim Posted April 16, 2008 Share Posted April 16, 2008 I have a GUI with WS_EX_LAYERED and a .gif in this GUI as the background... the gif is transparent and constitutes the GUI. But when I'm changing the transparency of the gui with WinSetTrans, the gif will be non-transparent. the background of the gif will be simply white and this is not what I want. How I fix that?Works fine for me: #include <GuiConstants.au3> $hGUI = GUICreate("Test GUI", 300, 200, -1, -1, -1, $WS_EX_LAYERED) $hPic = GUICtrlCreatePic(@ScriptDir & "\test.gif", 10, 10, 280, 180) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState() For $i = 255 To 0 Step -1 WinSetTrans($hGUI, "", $i) Sleep(100) Next Do Until GUIGetMsg() = -3test.zip Link to comment Share on other sites More sharing options...
health Posted April 16, 2008 Author Share Posted April 16, 2008 hey rasim, the gif has transparency! when I'm changing the transparency of the win with winsettrans then the transparency of the gif goes away. this is my problem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now