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
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.
Disable feature in SdFeatureTree
Started by
jaja
, Mar 06 2007 10:06
2 replies to this topic
Posted 08 March 2007 - 18:35
FeatureSelectItem un-selects a checkbox but doesn't disable it.
Stefan Krüger
InstallSite.org twitter facebook
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
RUS ULANOFF