Listbox icon size?
BlitzMax Forums/MaxGUI Module/Listbox icon size?
| ||
My icon strip is made of 64x64 icons. The listbox adjusts to the size, but displays the icons at 16x16. Can anyone tell me where this is controlled, so I can modify it? Is this a problem with icon strips, or with the win32 listbox gadget? |
| ||
I tried changing this code in win32.maxgui, to no avail:Method SetIconStrip(iconstrip:TIconStrip) Local imagelist If Not iconstrip Then _icons = TWindowsIconStrip.CreateBlank() Else _icons = TWindowsIconStrip(iconstrip) EndIf If _icons Then imagelist = _icons._imagelist 'Changed this line: 'SendMessageW _hwnd,LVM_SETIMAGELIST,LVSIL_SMALL,imagelist 'To this: SendMessageW _hwnd,LVM_SETIMAGELIST,LVSIL_NORMAL,imagelist If Not iconstrip Then SendMessageW _hwnd,LVM_SETIMAGELIST,LVSIL_SMALL,0 _icons = Null EndIf EndMethod |
| ||
It should be no problem to use bigger icons in listboxes under windows. See left listbox inside the screenshot: [deleted] Just make sure your icon file is set up correctly. Example code: http://www.blitzbasic.com/Community/posts.php?topic=59315#660700 Can you post a simple example code? Grisu Last edited 2011 |
| ||
I forgot that I imported my own "special" listbox gadget into my project, with drag and drop functionality. Apparently, it was so good I didn't even realize it wasn't the native Windows GUI! XD |
| ||
It works fine now, nevermind me: |