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
- :
- Re: Show/Hide text area?
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
Nov 25, 2008
10:59 AM
Show/Hide text area?
In Basic MSI Project:
I have a custom dialog where I ask user for new password. User enters password and clicks next. If I don't like his password I'd like to show a message on the dialog. I created a text area with text and set it Visible=False
How do I set it to True on the click of the "Next" button?
Thanks!
I have a custom dialog where I ask user for new password. User enters password and clicks next. If I don't like his password I'd like to show a message on the dialog. I created a text area with text and set it Visible=False
How do I set it to True on the click of the "Next" button?
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 25, 2008
11:26 PM
/*
Function : My_ControlVisible(BYVAL number, BYVAL number, BYVAL BOOL)
Description : To hide a control in dialog box/screen
Parameters : 1. Dialog's id return by CmdGetHwndDlg()
2. Contol's id to hide
3. True (to show)/False(to hide)
*/
function My_ControlVisible(hDlg, nControlID, bState)
number hCtrl;
begin
hCtrl = GetDlgItem(hDlg, nControlID);
if bState then
ShowWindow(hCtrl, SW_SHOW);
else
ShowWindow(hCtrl, SW_HIDE);
endif;
end;
.
.
.
..........................................................
Call the below code after waitondialog
if(nResult==NEXT) then
hDlg = CmdGetHwndDlg();
My_ControlVisible(hDlg,, );
endif;
..................................
Function : My_ControlVisible(BYVAL number, BYVAL number, BYVAL BOOL)
Description : To hide a control in dialog box/screen
Parameters : 1. Dialog's id return by CmdGetHwndDlg()
2. Contol's id to hide
3. True (to show)/False(to hide)
*/
function My_ControlVisible(hDlg, nControlID, bState)
number hCtrl;
begin
hCtrl = GetDlgItem(hDlg, nControlID);
if bState then
ShowWindow(hCtrl, SW_SHOW);
else
ShowWindow(hCtrl, SW_HIDE);
endif;
end;
.
.
.
..........................................................
Call the below code after waitondialog
if(nResult==NEXT) then
hDlg = CmdGetHwndDlg(
My_ControlVisible(hDlg,
endif;
..................................
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)