Archive: Chang the MUI_BGCOLOR dynamically


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!


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


Thanks for the tipp. Yes i use MUI2.
But i cannot find a way to get a handle to the subitems. Any ideas?


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


Yes my subitems are the controls.

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