Hy I would like to make this custompage with colors but I don't understand how I make this. Could anybody paste this text with colors in my .nsi ?
Please help me
This is my Text with the colors:
0x0000DDWichtig:
0x000000In der folgenden Sektion können sie die Counter-Strike 1.6 Erweiterungen installieren.
Dabei werden einige Dateien ersetzt die ihre eigenen Einstellungen ersetzen könnten. Lesen
sie deshalb die Verängerungen die vorgenommen werden gründlich durch:
0x0080FFMod's ---> userconfig.cfg
Config, MP3-Player... ---> Sie ersetzen die userconfig.cfg und autoexec.cfg
Z-Bots ---> commandmenu.txt
0x000000Falls Ihnen diese Begriffe nichts sagen, ist es nur wichtig zu wissen, dass die Steuerung bei Counter-Strike 1.6 etwas verändert sein kann (eigentlich besser)
---> Die Veränderungen werden in der Readme beschrieben.
Could someone write me this text with colors ?
8 posts
Please help me. I don't understand how I can do this. The help file is to difficult to understand (I'am German). Could you only say me what I must write ?
e.g.
You must make an Function:
Function color
hklm ...
Pls help me
e.g.
You must make an Function:
Function color
hklm ...
Pls help me
Why can nobody help me ? Only an example. Pls
The text is an label
The text is an label
I never used them, but from docs I figure you have to use:
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1006
SetCtlColors $0 0xFF0000 0x00FF00
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 1006
SetCtlColors $0 0xFF0000 0x00FF00
It will be different for an InstallOptions page.
You must first use
Var HWND
...
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "file.ini"
Pop $HWND
!insertmacro MUI_INSTALLOPTIONS_SHOW
Then use $HWND instead of $0 in the example posted by ElvenProgrammer.
Example:
You must first use
Var HWND
...
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "file.ini"
Pop $HWND
!insertmacro MUI_INSTALLOPTIONS_SHOW
Then use $HWND instead of $0 in the example posted by ElvenProgrammer.
Example:
-StuVar HWND
Function showCustomPage
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "file.ini"
Pop $HWND
GetDlgItem $R0 $HWND 1200 ; 1200 + Field number - 1
SetCtlColors $R0 FF0000 00FF00
!insertmacro MUI_INSTALLOPTIONS_SHOW
FunctionEnd
As far as I understood Sp33dy Gonzale$ want to display colored text.
I think this is impossible with single label.
Attached file consist modified ini. And for coloration use followig code:
Fuction code will be:
I think this is impossible with single label.
Attached file consist modified ini. And for coloration use followig code:
Or you can use InstallOptionsEx and add in .ini-file "TxtColor='need_color'" where it need (for fields 1 and 3 in this case).
Function InformationsPage
Push $R0
Push $R1
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "information.ini"
Pop $R0
GetDlgItem $R1 $R0 1200 ;1200 + Field number - 1
SetCtlColors $R1 0x0000DD transparent
GetDlgItem $R1 $R0 1202 ;1200 + Field number - 1
SetCtlColors $R1 0x0080FF transparent
!insertmacro MUI_HEADER_TEXT "WICHTIG:" "Vor der Installation lesen!"
!insertmacro MUI_INSTALLOPTIONS_SHOW
Pop $R1
Pop $R0
FunctionEnd
Fuction code will be:
And don't forget: SetCtlColors use colors in RGB, Installoptions - in BRG.
Function InformationsPage
!insertmacro MUI_HEADER_TEXT "WICHTIG:" "Vor der Installation lesen!"
InstallOptionsEx::dialog "$PLUGINSDIR\information.ini"
Pop $R0
FunctionEnd
Thank you it works