cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bezpal
Level 4

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!
Labels (1)
0 Kudos
(1) Reply
anilkumar_mca
Level 8

/*
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;
..................................
0 Kudos