Jump to content
Sign in to follow this  

Transparent ico Background possible?...

Recommended Posts

Hi there,

here is what i tried to achieve:

I have a gui, with a background pic. The background pic is disabled after it was created so that i could place other elements over it.


$welcomeTxtGui  =   GUICreate ("WelcomeText", @DesktopWidth-32, 32, 16, @DesktopHeight/2-16, $WS_POPUP, $WS_EX_TOPMOST)
            GUISetBkColor (0x000000)
$welcomeGuiPos  =   WinGetPos ($welcomeTxtGui)
            _ScreenCapture_Capture($tempBackPic, $welcomeGuiPos[0], $welcomeGuiPos[1], @DesktopWidth-17,  @DesktopHeight/2+15)
$guiBackPic =   GUICtrlCreatePic ($tempBackPic, 0, 0, $welcomeGuiPos[2], $welcomeGuiPos[3])
            GUICtrlSetState ($guiBackPic, $GUI_DISABLE)
$guiTxtLabel    =   GUICtrlCreateLabel ("Bitte Warten...", 1, 1, $welcomeGuiPos[2]-4, $welcomeGuiPos[3]-4, $SS_NOTIFY + $SS_CENTER)
            GUICtrlSetFont (-1, 18, -1, -1, $font)
                GUICtrlSetColor (-1, 0xFFFFFF)
            GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
            GUICtrlCreateIcon (@SystemDir & "\shell32.dll", 24, 0, 0)

GUISetState (@SW_SHOW)

While 1
 Sleep (250)

My Problem is, that i want to have an icon (maybe animated) without that black background.

All i've read so far was to convert an icon into bitmap and then work with some functions from icon.au3 or winapiex. but this won't work for animated icons or?

how could i achieve this? i also played a little bit with the _API_SetLayeredWindowAttributes function (found in this forum. thx)



Edited by ZetupEXE

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...