Jump to content

Transparent


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...