Archive: why dont change it buttons color ?


why dont change it buttons color ?
look the image

this is my script


;--------------------------------
;Include Modern UI

!include "MUI.nsh"
!include "Sections.nsh"

;--------------------------------
;General

;Name and file
Name "GCF Backup v0.1"
OutFile "GCFBackup.exe"

ShowInstDetails show

;Get installation folder from registry if available
InstallDirRegKey HKLM "Software\Valve\Steam" "InstallPath"

SetCompressor lzma

Var HWND
Var DLGITEM
;--------------------------------
;Interface Settings

BrandingText " "

!define MUI_ABORTWARNING
!define MUI_COMPONENTSPAGE_NODESC
!define MUI_LICENSEPAGE_BGCOLOR "3E4637"
!define MUI_INSTFILESPAGE_COLORS "C4B550 3E4637"
!define MUI_INSTFILESPAGE_PROGRESSBAR "colored"
!define MUI_COMPONENTSPAGE_CHECKBITMAP "bmp\check.bmp"
!define MUI_BGCOLOR "3E4637"
!define MUI_ICON "bmp\Icon.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "bmp\welcome.bmp"
!define MUI_CUSTOMFUNCTION_GUIINIT myguiinit

;--------------------------------
;Pages

!insertmacro MUI_PAGE_WELCOME
!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseColor
!insertmacro MUI_PAGE_LICENSE "License\License.rtf"
!define MUI_PAGE_CUSTOMFUNCTION_SHOW CompColor
!insertmacro MUI_PAGE_COMPONENTS
!define MUI_PAGE_CUSTOMFUNCTION_SHOW InstColor
!insertmacro MUI_PAGE_INSTFILES

;--------------------------------
;Languages

!insertmacro MUI_LANGUAGE "English"

;--------------------------------
;Installer Sections

Section "GCF Vari" SecVari
ReadINIStr $R1 "$EXEDIR\CFG\config.ini" "GCF" "GCF Vari"
nsExec::ExecToLog '"$EXEDIR\7Z\7za.exe" x "$EXEDIR\7Z\$R1.7z" -aoa -y "-o$INSTDIR\SteamApps\"'
SectionEnd

...

;--------------------------------
; Colors

Function "myGUIInit"

SetCtlColors $HWNDPARENT FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1018
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1035
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1036
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1045
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1256
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1028
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1034
SetCtlColors $DLGITEM FFFFFF 3E4637
GetDlgItem $DLGITEM $HWNDPARENT 1037
SetCtlColors $DLGITEM C4B550 3E4637
GetDlgItem $DLGITEM $HWNDPARENT 1038
SetCtlColors $DLGITEM FFFFFF 3E4637
GetDlgItem $DLGITEM $HWNDPARENT 1039
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 2
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 3
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWNDPARENT 1044
SetCtlColors $DLGITEM FFFFFF 4C5844

FunctionEnd

Function "LicenseColor"

FindWindow $HWND "#32770" "" $HWNDPARENT
SetCtlColors $HWND FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1006
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1000
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1040
SetCtlColors $DLGITEM C4B550 4C5844

FunctionEnd

Function "CompColor"

FindWindow $HWND "#32770" "" $HWNDPARENT
SetCtlColors $HWND FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1006
SetCtlColors $DLGITEM C4B550 4C5844
GetDlgItem $DLGITEM $HWND 1021
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1022
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1023
SetCtlColors $DLGITEM FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1032
SetCtlColors $DLGITEM FFFFFF 3E4637

FunctionEnd

Function "InstColor"

FindWindow $HWND "#32770" "" $HWNDPARENT
SetCtlColors $HWND FFFFFF 4C5844
GetDlgItem $DLGITEM $HWND 1006
SetCtlColors $DLGITEM FFFFFF 4C5844

FunctionEnd

etc etc

The button controls (1, 2, 3) cannot be coloured by using SetCtlColors to my knowledge.
You might need to use the System plugin to do this.

-Stu


how can i find documentation or examples ?


SubClassing from NSIS source might help... wait, need to recompile <_<


I too have the same requirement to have green color for my Next and Gray for the Back button .Please help