Archive: Combobox and SetCtlColors


Combobox and SetCtlColors
  hello,
in my installer i use some custom pages with colored control and colored text (mainly black background and green texts).
all works great, but i need some combobox in a new custom page and the text isn't green (remain black) (the other controls have green texts) and as soon as i click the combox, the combobox background switch from black to the default white color.

any idea on how to get the green text inside cobobox while the background remain black when clicked ?

here's my code:


    Function intercust07

!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "page02.ini"
Pop $HWND
GetDlgItem $R0 $HWND 1200
SetCtlColors $R0 00C000 000000
GetDlgItem $R0 $HWND 1201
SetCtlColors $R0 00C000 000000
GetDlgItem $R0 $HWND 1202
SetCtlColors $R0 00C000 000000
GetDlgItem $R0 $HWND 1203
SetCtlColors $R0 00C000 000000
GetDlgItem $R0 $HWND 1204
SetCtlColors $R0 00C000 000000
FindWindow $R0"#32770" "" $HWNDPARENT
SetCtlColors $R0 00C000 000000
!insertmacro MUI_INSTALLOPTIONS_SHOW
Pop $R0
FunctionEnd
>
the combobox are controls 1200 and 1201

thanks

no idea ?


You'd probably have to create an owner drawn combo box for that. That requires modification of InstallOptions source code.


could you please add more details about this modification ? i've never done such complex task.
thanks


There's an example on CodeProject:

http://www.codeproject.com/cs/combob...wncombobox.asp


so i can't do that using nisis language ? i need to make a plugin using c++ ? because i can only make nsis and vb6 codes.
it's realy a pity than i can't change the combox colors as i change all others controls colors.....

thanks again.


No, you can't do that using only the NSIS language. As I said, it requires modifications to InstallOptions source code.