scarfy
11th November 2004 14:29 UTC
The Installer color
OK I went now for days through the forums and documentation and can't find anywhere an explenation where they don't epect u know stuff that i can't find in the documentation.. I just startet with NSIS and I really don't know alot of basics.. And it seems those sings r the hardest to find here..
So i gave up and try now posting here..
To my problem. I only want a simple thing like changing the background color of the installer. I could do it in the main window but that grey area doesn't really fit to my color.. so how (and not just a snipped of code wich i don't know how to put in) can i change the grey color of it..
scarfy
11th November 2004 14:31 UTC
hmm seems like my atachment didn't post the first time
kichik
11th November 2004 20:01 UTC
Well, to understand FindWindow and GetDlgItem you need some basic understanding of Windows dialogs and windows. SetCtlColors doesn't require any previous knowledge.
Scarfy
12th November 2004 07:07 UTC
I played around with those commands but at compiling it always says that the function i made it in is not referenced. I know its embarresing basic question.. but i'll ask it anyway.. How DO you reference it? and where in the code r u suposed to? on each page seperatly?
kichik
12th November 2004 11:17 UTC
For functions to be referenced, they must be called with Call or be a callback function. What you're looking for is page callback functions. Note that the MUI has different way of defining page callback functions.
Scarfy
16th November 2004 14:55 UTC
Thanks alot for your help...
But I don't really get the hang of the callback function. The read the discription to the funktion u linked to like... well alot... and I'm still not sure how to call it.. The only thing im sure of that it involves show. And i can't make the function in use in the example there..
And u said the MUI does it diferently anyway? Couldn't find alot in the modern UI Readme... meaby im just looking at the wrong places.. but i can't find the right ones...
But thanks for all your help so far
Afrow UK
16th November 2004 17:52 UTC
Yep, MUI does it different...
!define MUI_PAGE_CUSTOMFUNCTION_SHOW myWelcomeShowFunc
!insertmacro MUI_PAGE_WELCOME
Function myWelcomeShowFunc
...
FunctionEnd
-Stu
kichik
16th November 2004 20:47 UTC
You don't call callback functions. NSIS calls them. They are functions with special names that NSIS identifies and calls in certain situations.