实现VirtualTree的Editor的功能定制之setBounds

页面导航:首页 > 软件编程 > Delphi > 实现VirtualTree的Editor的功能定制之setBounds

实现VirtualTree的Editor的功能定制之setBounds

来源: 作者: 时间:2016-02-05 11:47 【

//做的改动1.//function TStringEditLink.PrepareEdit(Tree: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex): Boolean; //you can set the value diaplaying int the editor he
//做的改动

1.//function TStringEditLink.PrepareEdit(Tree: TBaseVirtualTree; Node: PVirtualNode; Column: TColumnIndex): Boolean;

    //you can set the value diaplaying int the editor here

    Text :=FTree.GetText(Node,Column);

    FirstMatch :=Pos ((,Text );

    if FirstMatch <>0 then
       LastMatch :=Pos (),Text )
    else
    begin
      FirstMatch :=Pos (",Text );
      if FirstMatch <>0 then
         LastMatch :=Pos (;,Text )-1;
    end;

   if LastMatch <>0 then
      Text :=Copy (Text,FirstMatch ,LastMatch -firstmatch+1);


2.//procedure TStringEditLink.SetBounds(R: TRect);

  //to change the left of bound

       text:= FTree.GetText(FNode,0);

Tags:

相关文章

    文章评论

    最 近 更 新
    热 点 排 行
    Js与CSS工具
    代码转换工具
    
    <