Archive: UMUI - Problem with InitDialog/Show


UMUI - Problem with InitDialog/Show
Hi SuperPat,

I am having a problem with UMUI when trying to call InitDialog/Show.
It doesn't show the background correctly...

I see in the .nsh script that you had to muck with "dialog" to get it to work, so I was wondering if you had something that fixed the InitDialog/Show as well...

Thanks!
Scott


Add in your page

;In your pre function
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "YourFile.ini"
Pop $1
SetCtlColors $1 "" "${MUI_BGCOLOR}"
;fill the ini and set the color of all the controls in your page
GetDlgItem $0 $1 1200
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $1 1201
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $1 1202
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
;.......
!insertmacro MUI_INSTALLOPTIONS_SHOW


For information, the next version do this automatically.
Moreover, I will work on a script that convert automatically an IO INI into a "compatible" IOEx INI now that bugs with the Button/Link were fixed.