What is the size of a Graphic when i add a image inside a ListIconGadget ?
Because there is no limit with Linux

http://www.purebasic.com/documentation/ ... adget.htmlAddGadgetItem(): Add an item (with an optional image in the standard 16x16 icon size).

The default sizes on Windows are 16x16 in "report" view and 32x32 in "icon" view. But it is possible to use any size you want in both modes via API:What is the size of a Graphic when i add a image inside a ListIconGadget ?
Because there is no limit with Linux
Code: Select all
#ICONSIZE = 115
OpenWindow(0,0,0,640,480,"void",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0,0,0,640,480,"Name",250)
SetGadgetAttribute(0,#PB_ListIcon_DisplayMode,#PB_ListIcon_LargeIcon)
For i=1 To 10 : AddGadgetItem(0,-1,"Gadget Item #" + Str(i)) : Next
CreateImage(0,#ICONSIZE,#ICONSIZE)
StartDrawing(ImageOutput(0))
For i=0 To #ICONSIZE-1 : Box(0,i,#ICONSIZE,1,RGB(255,255 - (i * 180 / (#ICONSIZE-1)),0)) : Next
StopDrawing()
himListView = ImageList_Create_(#ICONSIZE,#ICONSIZE,#ILC_COLOR32 | #ILC_MASK,1,0)
ImageList_Add_(himListView,ImageID(0),0)
SendMessage_(GadgetID(0),#LVM_SETIMAGELIST,#LVSIL_NORMAL,himListView)
SendMessage_(GadgetID(0),#LVM_SETIMAGELIST,#LVSIL_SMALL,himListView)
While WaitWindowEvent() ! #PB_Event_CloseWindow : Wend
ImageList_Destroy_(himListView)
ReplaceTrond wrote:The selection colour is not correctly alpha blended onto the image in that example.
Code: Select all
#ILC_COLORDDBCode: Select all
#ILC_COLOR32 | #ILC_MASK