I am trying to set the properties of a category on the package selection screen with the following code:
After this code runs, the "State" and "Expanded" properties of the category are set properly, but it seems to be ignoring the "Enabled" property. The category's enabled property always remains set to whatever state you assign to it at design time.
Am I missing something or is this a bug in the SetCategoryProperties function?
Code:
if (serverAppsEnabled == true) then DlgSelectPackages.SetCategoryProperties(CTRL_SELECT_PACKAGE_TREE, CTRL_CATEGORY_002, {Enabled=true, State=CB_CHECKED, Expanded=true}); else DlgSelectPackages.SetCategoryProperties(CTRL_SELECT_PACKAGE_TREE, CTRL_CATEGORY_002, {Enabled=false, State=CB_UNCHECKED, Expanded=false}); end DlgSelectPackages.UpdateDisplay(CTRL_SELECT_PACKAGE_TREE);
Am I missing something or is this a bug in the SetCategoryProperties function?
Comment