码迷,mamicode.com
首页 > 其他好文 > 详细

tcxtreelist 展示图片 图像

时间:2015-12-16 17:13:47      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:

procedure TfrmstPostImageCollate.LoadCollateImage(AOrderID: integer);
var
mySql: string;
node: TcxTreeListNode;
cPhoto, cFullPhoto: string;
begin
Screen.Cursor := crHourGlass;
tlResult.BeginUpdate;
tlResult.Clear;

LockWindowUpdate(Handle);
mySql := ‘ Select * from stCardPhotos where iOrderid=‘ + IntToStr(AOrderID);
OpenQuery(qryUnit, mySql);
try
with qryUnit do
begin
while not Eof do
begin
cPhoto := FieldByName(‘gPhoto‘).AsString;
cFullPhoto := FieldByName(‘cFullPhoto‘).AsString;

if cFullPhoto <> ‘‘ then
begin
node := tlResult.Add;
node.Texts[tlcResGPhoto.ItemIndex] := cPhoto;
node.Texts[tlcResCFullPhoto.ItemIndex] := FieldByName(‘cFullPhoto‘).AsString;
end;
Next;
end;
end;
finally
tlResult.EndUpdate;
LockWindowUpdate(0);
Screen.Cursor := crDefault;
end;
end;

如下图:

技术分享

tcxtreelist 展示图片 图像

标签:

原文地址:http://www.cnblogs.com/zhangzhifeng/p/5051477.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!