遍历dxBarManager菜单及工具条

procedure TForm1.blDxBarManager;
var
  i: Integer;
begin
  for i := 0 to dxBarManager1.ItemCount - 1 do
  begin
    if dxBarManager1.Items[i] is TdxBarButton then
      TdxBarButton(dxBarManager1.Items[i]).OnClick := dxBarButtonClick;
  end;
end;

posted @ 2011-04-09 23:27  delphi中间件  阅读(528)  评论(0编辑  收藏  举报