Old 28th February 2007, 09:46   #1
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
Question 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 is offline   Reply With Quote
Old 1st March 2007, 13:52   #2
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
no idea ?
Satsuki is offline   Reply With Quote
Old 1st March 2007, 18:46   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You'd probably have to create an owner drawn combo box for that. That requires modification of InstallOptions source code.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 2nd March 2007, 19:58   #4
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
could you please add more details about this modification ? i've never done such complex task.
thanks
Satsuki is offline   Reply With Quote
Old 2nd March 2007, 20:06   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
There's an example on CodeProject:

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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 3rd March 2007, 08:53   #6
Satsuki
Junior Member
 
Join Date: Jul 2004
Posts: 30
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.
Satsuki is offline   Reply With Quote
Old 3rd March 2007, 09:51   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
No, you can't do that using only the NSIS language. As I said, it requires modifications to InstallOptions source code.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
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