设为首页】 【加入收藏】 【网站地图】 【商品折扣
娱乐一生 娱乐明星
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
首页  |  java  |  .NET  |  C/C++  |  网页技术  |  php  |  asp  |  delphi  |  VC  |  VB开发  |  游戏开发  |  软件工程  |  Power Builder  |  Linux开发  |  Windows开发技巧
当前位置:首页 >> delphi >> 实现VirtualTree的Editor的功能定制之setBounds_Delphi教程_src119.com

实现VirtualTree的Editor的功能定制之setBounds_Delphi教程_src119.com -


//做的改动

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

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

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

  FirstMatch :=Pos ('(',Text );

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

  if LastMatch < gt;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);
  Offset :=Pos ('(',Text );

  if Offset =0 then
  Offset :=Pos ('"',Text );

  R.Left :=R.Left +Offset*5;
  R.Right :=R.Right -5;

3.//function TStringEditLink.BeginEdit: Boolea 
  //to show hint while editing
  FTree.Hint :=FTree.GetText(FNode,0);
  FTree.ShowHint :=True ;

4.
procedure TScriptsForm.DataTreeCreateEditor(Sender: TBaseVirtualTree;
  Node: PVirtualNode; Column: TColumnIndex; out EditLink: IVTEditLink);

begin
  EditLink:= TStringEditLink.Create ;

end;



 

娱乐图摘

更多 >>

靓丽清纯美女meimei

美女私房全裸照
导演劝女演员脱衣服(视频)

大胆火辣人体艺术写真(图)

黑丝妹妹热辣诱惑-丝袜美女妹妹

PLMM 漂亮妹妹图集-妹妹图库

全球美女图库-美女集中营

52MM 我爱漂亮妹妹-制服妹妹诱惑

图王图库-世界美女明星图片资料库
美女写真集锦

激情两性-解密性生活
浴室MM湿身内衣诱惑
邻家小妹洗澡被偷拍(视频)

热点文章

更多

· 使用MIDAS访问远程Access数据库_Delphi教程_
· Delphi2005学习笔记4——再谈NameSpace和D
· 多层数据库开发十二:使用数据控件_Delphi教程_src1
· 在Delphi中自己建立交叉表_Delphi教程_src11
· 用Delphi设计代理服务器_Delphi教程_src119
· Delphi开发单机瘦数据库程序要点_Delphi教程_sr
· 拖拉打开文件_Delphi教程_src119.com
· 搜索字符串在流中的位置_Delphi教程_src119.co
· 用Delphi编写Win2000服务程序_Delphi教程_
· 創建一個簡單的"專家"_Delphi教程

热点文章

更多