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

Disable feature in SdFeatureTree


2 replies to this topic

jaja

jaja
  • Full Members
  • 1 posts

Posted 06 March 2007 - 10:06

Hi

Using installShield 12

Trying to disable a checkbox (in this case Norwegian ) in SdFeatureTree, but can't affect checkbox

FeatureAddItem (szFeatures, "English", 100, TRUE);
FeatureAddItem (szFeatures, "Danish", 100, FALSE);
FeatureAddItem (szFeatures, "Finnish", 100, FALSE);
FeatureAddItem (szFeatures, "Norwegian", 100, FALSE);
FeatureAddItem (szFeatures, "Swedish", 100, FALSE);

FeatureSelectItem ( szFeatures, "Norwegian" , FALSE );
SdFeatureTree ( szTitle, szMsg, szDir, szFeatures, nLevel );

Thanks
Janne


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 March 2007 - 18:35

FeatureSelectItem un-selects a checkbox but doesn't disable it.

rusgrafx

rusgrafx
  • Full Members
  • 6 posts

Posted 15 March 2007 - 18:50

I don't know of a way to disable a Feature, but I usually use the following block to not let user select a Feature:

CODE
FeatureSelectItem ( szFeatures, "Norwegian" , FALSE );
FeatureSetData( MEDIA, "Norwegian", FEATURE_FIELD_VISIBLE, FALSE, "" );


This way the Feature is removed from the dialog (UI), so user cannot check/uncheck it, but you still can control whether it should be enabled or not.

Regards,
RUS

Edited by rusgrafx, 20 March 2007 - 04:04.

Regards,
RUS ULANOFF