|
|
|
|
#1 |
|
Junior Member
Join Date: Oct 2011
Posts: 1
|
Get id of custom button
Hello All,
Can any one help me in understanding how can i fetch the id of button before going to custom page ..i want to hide that custom button before displaying the page, and enable it on click of check box...for doing this i suppose i need control id of custom button.. So i did like that - i am using install options for custom page..and my custom button field number is '15'. !macro checkMemory GetDlgItem $R0 $HWNDPARENT 1214 EnableWindow $R0 0 !macroend Function CustomP !insertmacro checkMemory !insertmacro INSTALLOPTIONS_DISPLAY "custom.ini" FunctionEnd thanks |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
InstallOptions supplies the HWND of the control in the INI file. This is explained in the InstallOptions documentation and there is even an example script (Examples\InstallOptions\testnotify.nsi) demonstrating the use of the HWND value, e.g.
ReadINIStr $1 "$PLUGINSDIR\test.ini" "Field 8" "HWND" |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Ideally you should use nsDialogs which makes this kind of thing much easier.
Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|