Jump to content

Background of icon is black instead transparent?!


Recommended Posts

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) :)

Link to comment
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) :)

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...