Sign in to follow this  
Followers 0
Madza91

Background of icon is black instead transparent?!

2 posts in this topic

Hello, i created this example script to ask, why is background of icon black instead transparent, and is it possible to fix that?

#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
#include <GuiImageList.au3>

$Form1 = GUICreate("Form1", 479, 343, 192, 124)
$list = GUICtrlCreateListView("Something",8, 8, 210, 259)

$hImage = _GUIImageList_Create()
_GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 131) ;TXT icon = 0
_GUICtrlListView_SetImageList($list, $hImage, 1)

_GUICtrlListView_AddItem($list, "Row 1: Col 1", 0)
$Button1 = GUICtrlCreateButton("Button1", 144, 304, 75, 25, 0)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites



Solved. I forgot to set color options for _GUIImageList_Create()


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

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