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

TdxBarItem.ClickItemLink, TdxBarItem.CurItemLink Example

This example requires several TdxBarButton item controls with one underlying item. The following code represents a TdxBarButton item’s OnClick event handler that hides the item control being clicked.

procedure TForm1.dxBarButton1Click(Sender: TObject);
begin
  dxBarButton1.ClickItemLink.Visible := False;
end;

To specify the item link that corresponds to the active item control, you can also use the CurItemLink property as shown in the following code snippet.

dxBarButton2.CurItemLink.Visible := False;