【问题标题】:how to fill TListView runtime without PrototypeBindSource如何在没有 PrototypeBindSource 的情况下填充 TListView 运行时
【发布时间】:2014-07-16 19:05:40
【问题描述】:

我研究过: http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Tutorial:_Using_LiveBindings_to_Populate_a_ListView_(iOS_and_Android)

如何在运行时填充TListView 类型的组件?我会使用文本和位图字段。

【问题讨论】:

    标签: delphi firemonkey delphi-xe4


    【解决方案1】:

    我是这样做的:

    item := ChanelsListView.Items.Add;
    item.Text := Chanel.Name;
    item.Detail := Chanel.ProgTypeName;
    item.Bitmap.Assign(Chanel.Logo);
    item.Tag := Chanel.Cod;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-22
      • 1970-01-01
      • 2015-12-02
      • 2013-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多