Page 2 of 2

Posted: Wed Sep 27, 2006 12:01 pm
by Anden
Not much difference there.

Maybe one of the control flags is the problem:

li_users_hnd = ListIconGadget(#users, 493, 28, 140, 325, "Users Online", 136, #PB_ListIcon_FullRowSelect|#PB_ListIcon_AlwaysShowSelection|#LVS_NOSORTHEADER|#PB_ListIcon_CheckBoxes)

#PB_ListIcon_CheckBoxes? (which is an icon itself and can be replaced too)

And there is a state and a stateMask member in the LVITEM structure (used with LVM_SETITEM).

Is the checkbox icon located in the "original" image list?

Posted: Wed Sep 27, 2006 1:44 pm
by Fangbeast
I don't think it is. A few people have addressed this issue in the past and it appears that the checkbox is a child window of the gadget itself so it *might* stand to reason that

But since I haven't used them for ages myself (or gone through MSDN for the details), couldn't tell you for sure.

You might put in a query to Freak, he would know.

Sorry to not be more help.

Re: SetGadgetItemIcon()

Posted: Tue Oct 06, 2009 10:39 pm
by Michael Vogel
Does PB 4.40 already has such a function?

Using the API commands is not compatible with the PB commands, like AddGadgetItem(...,IconHandle) and also more complicate (sorting a ListIconGadget needs quite a lot of code, after ClearGadgetItems() the icon list has to be reassigned etc.)

A PB function to change an icon which has been assigned by PB would be fine 8)

Michael

Re: SetGadgetItemIcon()

Posted: Thu Aug 19, 2010 5:49 pm
by Niffo
+1 : a (multi plateform) function to change an icon of an item of a ListIconGadget or a ComboBoxGadget is missing in PB

The already existing function SetGadgetItemAttribute() could/should be used for this action.

Re: SetGadgetItemIcon()

Posted: Sun May 08, 2011 9:26 pm
by jamirokwai
Hi,

please do not only add SetGadgetItemIcon() but also GetGadgetItemIcon(),
which could come in handy when sorting ListIconGagdets also. It's one of
my problems with a ListIconGadget atm, as I need to exchange whole lines
including the Image...

Thanks :-)