Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 26th February 2007, 20:19   #1
Sheik
Senior Member
 
Join Date: Feb 2007
Posts: 152
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
Sheik is offline   Reply With Quote
Old 26th February 2007, 22:10   #2
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 192
Add in your page

code:
;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.

SuperPat is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump