|
|
#1 |
|
Junior Member
Join Date: Oct 2011
Posts: 24
|
Using CreateControl method with MUI2
Hello,
I am creating an installer using MUI2 pages. My installer has 4 pages: 1. Welcome page 2. User options page (Custom page) 3. Directory page 4. Install files page. My question is regarding the second custom page. In the custom page I have to create controls like radio button, drop list, check box etc. I tried building them using the {NSD_CreateRadioButton}, ${NSD_CreateDropList} and ${NSD_CreateCheckBox}. When I compile the script it gives error saying "Invalid Command" for all the above mentioned {NSD_Create*}. Why MUI2 custom page does not support the {NSD_Create*} commands as it is built using nsDialogs? Later I tried using nsDialogs::CreateControl to create my own controls but for except STATIC labels and EDIT control, I am not able to get the above mentioned controls to display on my custom window. I googled and searched the forum for Create control examples but did not find many except for STATIC and EDIT controls. Can anyone please let me know how to use CreateControl method to create a radio button, drop list and check box. Thanks in advance !! |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Post some code. There is no reason for the error unless you have not typed them correctly.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2011
Posts: 24
|
It was my mistake. As I was updating my script, I did not notice that header file is not pointing to MUI2. That was the reason for me to ge the invalid command error. Now it is working for me.
Thanks for the reply!! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|