Sign in to follow this  
Followers 0
scon

ListView Item Icon disappears when select

6 posts in this topic

#1 ·  Posted (edited)

Posted Image

........................
$ListView = GUICtrlCreateListView("", 50, 55, 650, 190, $LVS_NOCOLUMNHEADER, $WS_EX_STATICEDGE)
Local $exStyles = BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_DOUBLEBUFFER, $LVS_EX_FLATSB)
$dumm = _GUIImageList_Create(22,22,5)
_GUIImageList_AddBitmap($dumm, "0.bmp")
_GUIImageList_AddBitmap($dumm, "1.bmp")
_GUICtrlListView_SetImageList($ListView, $dumm, 1)
....................
_GUICtrlListView_InsertItem($ListView, "2:12:12", 0, 1)

Why is the icon disappears, and how to cure it? many thanks

Edited by scon

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Nea. I think need to assign an icon for the state "select". But how?

Edited by scon

Share this post


Link to post
Share on other sites

I tried example from helpfile for _GUICtrlListView_SetImageList() which is similar to code in this topic

and it works OK also for selected rows without any further changes.

There are images in imagelist creted as SolidBitmap though.

Share this post


Link to post
Share on other sites

_GUIImageList_Create(22, 22, 5, 1)

Yes, is it! Thanks!

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