Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th July 2007, 08:23   #1
XXnsisuserXX
Junior Member
 
Join Date: Jul 2007
Posts: 4
How to change background color of custom page in NSIS

Hi there,

I'm using NSIS with Ultra Modern UI. Now I made custom page with the NSIS Dialogs plugin (Good work, BTW). I want to change the background color of the page, as the other pages are blue, but this is grey. How do I do this?

Here's an excerpt of the code:

code:

Function nsDialogsPage

nsDialogs::Create /NOUNLOAD 1018
Pop $0

GetFunctionAddress $0 OnBack
nsDialogs::OnBack /NOUNLOAD $0

${NSD_CreateCheckbox} 20 20 100% 12u Test
Pop $checkbox1
GetFunctionAddress $0 OnChange
nsDialogs::OnChange /NOUNLOAD $checkbox1 $0

${NSD_CreateText} 200 35 100% 12u hello
Pop $edit1
GetFunctionAddress $0 OnChange2
nsDialogs::OnChange /NOUNLOAD $edit1 $0

${NSD_CreateLabel} 0 40u 75% 40u "Hello.$\n* This is just a test.$\n* Nothing will happen."
Pop $0

nsDialogs::Show

FunctionEnd

XXnsisuserXX is offline   Reply With Quote
Old 17th July 2007, 16:23   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
Use SetCtlColors on the HWND nsDialogs::Create returns (the first Pop $0).

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 17th July 2007, 20:44   #3
XXnsisuserXX
Junior Member
 
Join Date: Jul 2007
Posts: 4
Thank you very much, kichik.

But now, I have another problem. When I leave the custom page via the next-button, the following page is not working, e.g. if you click the buttons, nothing happens. I attached the script.
Attached Files
File Type: nsi installer2.nsi (16.1 KB, 208 views)
XXnsisuserXX is offline   Reply With Quote
Old 17th July 2007, 21:23   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,336
You're calling nsDialogs::Show in the same page function twice. You should separate each nsDialogs::Create, ${NSD_Create...}, nsDialogs::Show sequence and put it in a different page function.

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 18th July 2007, 08:37   #5
XXnsisuserXX
Junior Member
 
Join Date: Jul 2007
Posts: 4
Thank you very much for your help.
XXnsisuserXX is offline   Reply With Quote
Reply
Go Back   Winamp 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