Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarManager.CategoryItemsVisible, TdxBarManager.Categories Example

You can toggle the category visibility when your application must enable/disable certain features, according to an end-user’s security access level. The following procedure sets the visibility of all items within a specified category.

procedure ShowCategory(ACategoryName: string; ABarManager: TdxBarManager; AVisible: TdxBarItemVisible);
var
  i: Integer;
begin
  for i := 0 to ABarManager.Categories.Count - 1 do
    if ABarManager.Categories.IndexOf(ACategoryName) = i then
    begin
      ABarManager.CategoryItemsVisible[i] := AVisible;
      Exit;
    end;
end;