how to set background color for a listbox
Im trying to set background color for a listbox.Is it possible to set background color for a listbox?
8 posts
!include nsDialogs.nsh
Name "ListBox Colors"
OutFile "ListBox Colors.exe"
Page custom nsDialogsPage
Var LIST_1
Var LIST_2
Function nsDialogsPage
nsDialogs::Create /NOUNLOAD 1018
Pop $0
${NSD_CreateListBox} 0 0 150 180 Test
Pop $LIST_1
SendMessage $LIST_1 ${LB_ADDSTRING} 0 "STR:Item"
SendMessage $LIST_1 ${LB_ADDSTRING} 0 "STR:Item"
SendMessage $LIST_1 ${LB_ADDSTRING} 0 "STR:Item"
SetCtlColors $LIST_1 0x3333CC 0xFFFFCC
${NSD_CreateListBox} 160 0 150 180 Test
Pop $LIST_2
SendMessage $LIST_2 ${LB_ADDSTRING} 0 "STR:Item"
SendMessage $LIST_2 ${LB_ADDSTRING} 0 "STR:Item"
SendMessage $LIST_2 ${LB_ADDSTRING} 0 "STR:Item"
SetCtlColors $LIST_2 0x990033 0xFFCC33
nsDialogs::Show
FunctionEnd
Section
SectionEnd