Skip to main content

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;