TDxNavBar做导航菜单,类QQ的抽屉效果

添加组,添加项,并将项和组关联起来

procedure TForm2.cxButton1Click(Sender: TObject);
var
  item: TdxnavbarItem;
  grp: Tdxnavbargroup;
begin
  grp := dxnavbar1.Groups.Add;
  item := dxnavbar1.Items.Add;
  item.Caption := 'item1';
  // item.OnClick:=button1.nil;
  grp.CreateLink(item);
end;

  

 

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