zoukankan      html  css  js  c++  java
  • tcxtreelist 展示图片 图像

    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;

    如下图:

  • 相关阅读:
    oracle索引学习
    (转载)Windows下手动完全卸载Oracle
    Funsion Charts 学习(二)
    Funsion Charts 学习(一)
    集合操作
    文件操作
    字典操作
    字符串操作
    列表操作
    python基本运算
  • 原文地址:https://www.cnblogs.com/zhangzhifeng/p/5051477.html
Copyright © 2011-2022 走看看