Prev Previous Post   Next Post Next
Old 20th April 2007, 08:15   #1
bradharding
Member
 
Join Date: Sep 2003
Posts: 53
Colour of combobox on components page

Hi!

Having never been one to leave things alone, I'm in the process of forcing the colours of every single control in my installer. On the components page, for instance, I do this:

code:

; Change the text and background colours of all controls on the page
FindWindow $0 "#32770" "" $HWNDPARENT
SetCtlColors $0 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1006 ; Static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1021 ; "Select the installation type" static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1017 ; Installation type combobox control
SetCtlColors $1 ${BLACK} ${WHITE}
GetDlgItem $1 $0 1022 ; "Select the components" static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1032 ; Components treeview control
SendMessage $1 ${TVM_SETBKCOLOR} 0 ${WHITE}
SendMessage $1 ${TVM_SETTEXTCOLOR} 0 ${BLACK}
GetDlgItem $1 $0 1023 ; "Space required" static text
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1042 ; Description groupbox control
SetCtlColors $1 ${BLACK} ${GRAY}
GetDlgItem $1 $0 1043 ; Description static text
SetCtlColors $1 ${BLACK} ${GRAY}



Which works fine, but there are 2 things I don't know how to do. How would I change the colour of 1) the dropdown part of the combobox control (dialog id # 1017) and 2) the "Description" title of the groupbox control (dialog id # 1042)?

Any help would be greatly appreciated!

Thanks in advance,
Brad.
bradharding is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump