Skip to content
⌘ NSIS Forum Archive

Chang the MUI_BGCOLOR dynamically

5 posts

Someone123#

Chang the MUI_BGCOLOR dynamically

Hello Folks!

I would like to know how to change the background color like defined in MUI_BGCOLOR dynamically.

Thanks in advanced!
Afrow UK#
I assume you are using MUI2? You need to look at the code in the relevant MUI page (Contrib\Modern UI 2\Pages\*) that uses ${MUI_BGCOLOR} (SetCtlColors calls) and copy that code.

Stu
Someone123#
Thanks for the tipp. Yes i use MUI2.
But i cannot find a way to get a handle to the subitems. Any ideas?
Afrow UK#
Sub items? Do you mean child controls? Is it the welcome and/or finish page? Do a search in the NSH files for ${MUI_BGCOLOR} as I said and each SetCtlColors line has the handle you want (i.e. $mui.WelcomePage, $mui.WelcomePage.Title etc)

Stu
Someone123#
Yes my subitems are the controls.

For my needs i can use this code:
Var head
GetDlgItem $head $HWNDPARENT 1034
SetCtlColors $head "" "ff0000"