SetGadgetItemIcon()
Posted: Fri Sep 01, 2006 8:54 pm
Wished for: SetGadgetItemIcon(). The name is self explanatory.
http://www.purebasic.com
https://www.purebasic.fr/english/
You can, thats right, but then you need to ownerdraw this controls. this will cause curruptions if the user uses skins.thamarok wrote:As far as I know, you can put icons in items of a ComboBoxGadget, but this needs pretty much Win32 API code and I am not an expert in this. (Mainly interested in Linux applications)
Made a quick search on Google with "combobox item icon" and ended up with a site from MSDN. The site said that you can use a ComboBoxEx control to avoid ownerdrawing the ComboBox to have icons. According to this, you need to use ComboBoxEx controls to make your application work with people who use skinning applications such as WindowBlinds.Tranquil wrote:You can, thats right, but then you need to ownerdraw this controls. this will cause curruptions if the user uses skins.thamarok wrote:As far as I know, you can put icons in items of a ComboBoxGadget, but this needs pretty much Win32 API code and I am not an expert in this. (Mainly interested in Linux applications)
Until the command is implemented, did you find alternate code in the forum to do this (Like I did) or do you want some?Trond wrote:It's for ListIconGadgets.
Anden wrote:Thanks so far, added the #LVM_SETEXTENDEDLISTVIEWSTYLE to my code (which was somehow missing before :-))
Trying to change the icon in column 0 (the one that PB is able to set initially), so could you refine, please?
All my code is written in pb4 and works fine once I figured out what the heck I was doing wrong (and I do a lot wrong).Anden wrote:Did you try it with PB4 too?
It seems that the lv imagelist is somehow "locked" in V4:
SendMessage_(li_users_hnd, #LVM_SETIMAGELIST, #LVSIL_SMALL, lvil_hnd)
always returns 0 (SDK: Zero (Null) means "not successful")