Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Custom pages with UMUI (Ultra Modern Interface) (http://forums.winamp.com/showthread.php?t=280026)

SrMaxtor 26th October 2007 11:27

Custom pages with UMUI (Ultra Modern Interface)
 
I try to use a custom page with UMUI. The page have two radio button and one textbox and I want to make the textbox disable when one of the radio button is selected.

I try to catch the handle with ReadINIStr and WriteINIStr to use the handle to disable the textbox, and it doesn't work fine because the handle is NULL

SuperPat 26th October 2007 17:28

Hello,

Did you see the example in the redme file?


code:
Var HWND
Var DLGITEM
Var FONT
LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Install Options Page Title"
LangString TEXT_IO_SUBTITLE ${LANG_ENGLISH} "A subtitle"
Function FunctionName ;FunctionName defined with Page command
!insertmacro MUI_HEADER_TEXT "$(TEXT_IO_TITLE)" "$(TEXT_IO_SUBTITLE)"
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioFile.ini"
Pop $HWND ;HWND of dialog
;Apply the Background color at the page
SetCtlColors $HWND "" "${MUI_BGCOLOR}"
;Apply the right text color and background color at all the field
GetDlgItem $0 $HWND 1200
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $HWND 1201
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $HWND 1202
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}
GetDlgItem $0 $HWND 1203
SetCtlColors $0 ${MUI_TEXT_COLOR} ${MUI_BGCOLOR}

GetDlgItem $DLGITEM $HWND 1200 ;1200 + Field number - 1
;$DLGITEM contains the HWND of the first field
CreateFont $FONT "Tahoma" 10 700 SendMessage $DLGITEM ${WM_SETFONT} $FONT 0
!insertmacro MUI_INSTALLOPTIONS_SHOW
FunctionEnd



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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.