Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

how to hide edit boxes in custom panel


5 replies to this topic

prasankn

prasankn
  • Members
  • 22 posts

Posted 22 March 2006 - 06:45

Dear All,

I am creating custom panels using VC ++.

|I had created sepereate dlls for four edit box, three edit box with a readio button, panel containing radio button edit boxes and check boxes.

Is it possible to create multiple edit boxes with in a single panel and the number of edit boxes to display must determine at run time.

ie.If I had created a apanel with 7 edit box, I want to display only 4 among seven,

is it possible to hide 3 edit box by passing arguments to the DLL.

Pleaese advice me is it possible or not, it will reduce a lot of time.

Thanks,
prasanna N
http://www.codeminer.com/



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 22 March 2006 - 10:52

Have you tried the ShowWindow() WinAPI

prasankn

prasankn
  • Members
  • 22 posts

Posted 22 March 2006 - 18:35

Hi Stegan,

I had tried it, and it works fine.

Thanks

Prasanna N biggrin.gif

Shiamak

Shiamak
  • Full Members
  • 6 posts

Posted 31 January 2008 - 05:50

QUOTE (Stefan Krueger @ 2006-03-22 10:52)
Have you tried the ShowWindow() WinAPI

Steven,

How one would use ShowWindow() API just to hide the controls on Installscript MSI project?

Could you please give me an example?

I need to hide just 2 edit boxes on my dialog box based on condition then bring em back if condition meets certain criteria and I am using IS 12.

Thanks for your help.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 04 February 2008 - 16:14

Did you look up the ShowWindow topic in the help file?

samsquared

samsquared
  • Full Members
  • 18 posts

Posted 26 February 2008 - 18:35

This example should do it (where szDialogName has been set to your dialog name):

CODE

HWND hwndDlg, hwndItem;
.
.
.
hwndDlg = CmdGetHwndDlg(szDialogName);
hwndItem = GetDlgItem(hwndDlg, IDC_FIELDNAME);
EnableWindow(hwndItem, FALSE); // not really necessary
ShowWindow(hwndItem, SW_HIDE);


Keep in mind that this is an IS6 forum.