Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Changing Default Pages (http://forums.winamp.com/showthread.php?t=233167)

SuperistJoe 14th December 2005 19:43

Changing Default Pages
 
The default next button for the Directory page is either Next or Install depending on if there are more sections after it. I was wondering if there was a way to control that. With custom pages I can just set that value, but I'm not sure how to set the value with system generated pages.

Thanks
Joe

Jnuw 14th December 2005 20:53

Hello.

Add a MUI_PAGE_CUSTOMFUNCTION_SHOW define right before the Directory page macro, like this:
code:

!define MUI_PAGE_CUSTOMFUNCTION_SHOW "DirectoryShow"
!insertmacro MUI_PAGE_DIRECTORY



Then add this function, and replace "ButtonTextHere" with what ever you want the button to say:
code:

Function DirectoryShow
GetDlgItem $0 $HWNDPARENT 1
SendMessage $0 ${WM_SETTEXT} 0 "STR:ButtonTextHere"
FunctionEnd



Good luck.

kichik 15th December 2005 17:05

Or simply use MiscButtonText and InstallButtonText.


All times are GMT. The time now is 05:49.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.