Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Combobox and SetCtlColors (http://forums.winamp.com/showthread.php?t=266764)

Satsuki 28th February 2007 09:46

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:
PHP 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

Satsuki 1st March 2007 13:52

no idea ?

kichik 1st March 2007 18:46

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

Satsuki 2nd March 2007 19:58

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

kichik 2nd March 2007 20:06

There's an example on CodeProject:

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

Satsuki 3rd March 2007 08:53

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.

kichik 3rd March 2007 09:51

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


All times are GMT. The time now is 18:04.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.