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;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2011/04/09/2940615.html