This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do I require user to supply a value ?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 03, 2010
10:26 AM
How do I require user to supply a value ?
I have a dialog in my installer that prompts for a server address. How do I make it so they have to enter something before the Next button is enabled ? At this point I'm not really worried about validating the input, just requiring they enter something.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 03, 2010
01:36 PM
Perhaps borrow the technique used in SdRegisterUser and other dialog boxes, which involves code like this:
You can get a copy of the code in the InstallScript view (in InstallShield 2010) by selecting the Dialog Source category and then selecting SdRegisterUser, for example.
if (nMessage = EDITBOX_CHANGE) then
CtrlGetText(szDlg, SD_EDIT_NAME, svName);
StrTrim( svCompany );
StrTrim( svName );
EnableWindow( hwndNext,
StrLengthChars( svName ) && StrLengthChars( svCompany ) );
endif;
You can get a copy of the code in the InstallScript view (in InstallShield 2010) by selecting the Dialog Source category and then selecting SdRegisterUser, for example.