Jump to content
Sign in to follow this  
LithiumLi

Transparent

Recommended Posts

LithiumLi

I need help with transparent pictures, I want the color to be transparent like a GIF instead of being able to click through my GUI.

I also would like to move the picture as I need to... have had problems moving a child transparent picture GUI

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Main = GUICreate("" , 800 , 600)
$Form1 = GUICreate("Form1", 200, 50, 0, 0 , Default , $WS_EX_LAYERED , $Main)
GUICtrlCreatePic("yip.bmp" , 0 , 0 , 200 , 50)
GUISetState(@SW_SHOW)

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Posted Image

Edited by LithiumLi

Share this post


Link to post
Share on other sites
Andreik

DELETE ME

FIXED

You should not delete the question and post the answer for those who search for this subject.

When the words fail... music speaks

Share this post


Link to post
Share on other sites
LithiumLi

You should not delete the question and post the answer for those who search for this subject.

Ok ill remember for next time.

Fixed

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Dummy = GUICreate("" , 800 , 600)
$Main = GUICreate("Form1", 200, 50, 0, 0 , $WS_POPUP , $WS_EX_LAYERED + $WS_EX_MDICHILD , $Dummy)
GUICtrlCreatePic("yip.bmp" , 0 , 0 , 200 , 50)
GUISetState(@SW_SHOW, $Dummy)
GUISetState(@SW_SHOW , $Main)

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
Edited by LithiumLi

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.