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

Custom Dialog


4 replies to this topic

jeeves

jeeves
  • Members
  • 4 posts

Posted 06 July 2004 - 15:38

I have a custom dialog upon which, I wish to disable/enable text input boxes.

The 'Enabled' property can be accessed via DevStudio's Dialog editor but I have so far failed to set this programmatically using installscript.

Has anyone discovered how? The alternative of having duplicate dialogs with different statically set properties is just to 'Yuck' to contemplate!!!.
Technical Build Manager, Worksuite Ltd, Swindon (UK)

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 06 July 2004 - 16:04

Not sure if this is your problem, but Windows Installer dialogs are very basic and don't provide you with all the events you need to refresh all types of controls on the dialog based on user interaction, here is some detail: http://community.ins...threadid=114751
Regards
-Stein Åsmul

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 July 2004 - 09:09

@Glytzhkof: this is pure InstallScript, no MSI

@jeeves: Add this to your dialog script:
CODE
hwndItem = GetDlgItem( hwndDlg, nControlID );
if (!IsWindow( hwndItem)) then return FALSE; endif;
EnableWindow( hwndItem, TRUE);  // or FALSE to disable

Look at the SdLicense2Dlg.rul for a complete sample.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 07 July 2004 - 09:25

Sorry smile.gif. I have started to use the "Today's active topics" feature, and I failed to look at the forum the post was in.
Regards
-Stein Åsmul

jeeves

jeeves
  • Members
  • 4 posts

Posted 07 July 2004 - 13:25

Thanks for the advice Guys. Much appreciated.
Technical Build Manager, Worksuite Ltd, Swindon (UK)