this code does not color the background of my listview
if I compile in 64 bits ....Purebasic 5.71 LTS
and ....
if I compile in 32 bits, the executable created does not color the listview...
whereas in the ide, it works.
Code: Select all
enumeration
#Win
#List
#font
EndEnumeration
LoadFont(#font,"Arial",10,#PB_Font_Bold )
If OpenWindow(#win,0,0,270,140,"ListViewGadget",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListViewGadget(#list,10,10,250,120)
SetGadgetFont(#list, FontID(#font))
SetGadgetColor(#list, #PB_Gadget_BackColor ,RGB(136,213,0))
For a=1 To 12
AddGadgetItem (#list,-1,"Elément "+Str(a)+" de la boîte à liste") ; défini le contenu de la boîte de liste
Next
SetGadgetState(#list,9) ; sélectionne le dixième élément (la numérotation commmence à 0)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf

