如题,我想在outlookbar里面嵌入treeview,不知如何实现!请知道的朋友指点一下!

解决方案 »

  1.   

    找了个raize控件,感谢君临天下网友!
      

  2.   

    几年前搞过,Raize中的RzGroupBar中是可以嵌控件的
    http://www.raize.com/DevTools/RzComps/Default.asp
      

  3.   

    弱弱的问一句,outlookbar是什么组件?
      

  4.   


    unit Unit1;interfaceuses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs, StdCtrls, Mask, RzEdit, RzGroupBar, ComCtrls, RzTreeVw;type
      TForm1 = class(TForm)
        RzGroupBar1: TRzGroupBar;
        RzGroup1: TRzGroup;
        RzGroup2: TRzGroup;
        Button1: TButton;
        procedure Button1Click(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
    Var
      Tree:TTreeView;
      Node,SubNode:TTreeNode;
    begin
      Tree := TTreeView.Create(RzGroup1);
      Tree.Parent := RzGroup1;
      Tree.Top := RzGroup1.Top + 20;
      Tree.Width := RzGroup1.Width;
      Tree.Show;
      Node := Tree.Items.AddChild(nil,'世界');
      SubNode := Tree.items.AddChild(Node,'中国')
    end;end.