问题标签 [tlistview]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
delphi - 为 ListView Delphi XE7 创建自定义项外观
我在尝试为 Delphi XE7 的 TListView firemonkey 控件创建自定义项目外观时遇到了很多麻烦。我想要的是为一个项目应该是什么定义我自己的“设计”并使用该项目。例如 :
我想要一个带有标题(顶部)-描述(中)-日期(底部)-按钮(右)的项目。
我找不到任何关于此的好的文档,但我得到了一些关于如何创建具有多个详细信息的 TListView 的示例,但问题是:该示例没有记录,因此很难理解那里发生了什么。
我想有一个链接或一些关于如何做到这一点的解释,或者是否有其他方式来实现我想要的。我曾尝试使用 TListBox,但在移动设备上的性能有点差。我不得不说我可以用 TListBox 制作我想要的东西,但这就是问题所在……性能。
所以我想要一个控件来列出具有良好性能的项目(我可以自己创建)。
delphi - Delphi XE8 Firemonkey TListView - 如何以编程方式设置背景颜色
TListView 与样式相连。此样式包含一个名为 background 的 TColorObject。如果您在 styledesigner 中设置 TColorObject.Color(红色),Treeview 将显示此颜色。如果在 TListView 的 ApplyStyleLookup 事件中以编程方式设置颜色,则背景颜色保持在样式中设置的颜色(红色)上!!!
delphi - Delphi TListView Trouble
I have a TListView
on my form. I add some columns in it depending on the input like so:
Afterwards I use the onData
event to populate the ListView like this:
It works fine since in the First column I have the Itemcaptions and in the second column I get the Itemtexts. What I couldnt figure out tho is how to populate the ListView depending on the data I get. For example: I have a matrix A which is a 3x3 Matrix and I want its elements to be shown in this ListView so the first row shows the first 3 row elements, the second row shows the second row three elements and so on. Questions: how can I access the third column? How can I populate the view according to the Index I have (i,j)?
Best regards
c++ - c ++ vcl TListView列标题未在onShow绘制
listview - 如何将项目从一个 ListView 拖放到另一个
我在尝试从一个 ListView 中选择一个项目并将其添加到另一个 ListView 时遇到了麻烦。我想过:
- 一个简单的拖放功能。
或者
- 选择索引并将每个子项存储在variables中,然后将其添加到另一个 ListView。
最后,我只需要能够将数据从 A 移动到 B,但从未使用过这种东西,所以我很迷茫。
非常感谢你。
delphi - 将焦点设置到 tlistview 中的搜索框
我在西雅图工作,只为 Windows 编写一个 FM 应用程序。
我的表单上有一个 tlistview 并填充了数据。
我打开了搜索选项。
如何以编程方式将焦点设置到搜索框?
如何增加搜索框的大小和字体大小?
谢谢
delphi - 如何从 TListViewItem 执行 ActionList 项
I'm trying to execute an action (TakePhotoFromCameraAction) in a TActionList, when a TListViewItem is selected.
TlistView 和 TListViewItem 都没有 Action 属性,所以我尝试在事件中调用 ActionList[0].Execute ,但没有任何反应。
有任何想法吗?
进一步:代码非常简单,因为它只是对这个问题的测试。我专注于 ActionList,因为那是我将使用的(当我整理出来时)。Button1 不工作(它总是失败,即使按钮 2 不工作),而(新)Button2 工作正常。
android - 在 C++ Builder XE 8 (firemonkey) 中手动创建 TOpenDialog
我正在使用 C++ Builder XE8。由于TOpenDialog
不适用于Android,我正在尝试自己制作这样的东西。我的逻辑很简单。它将开始检查“/storage”中的文件和文件夹,并在TListView
. 如果我触摸一个文件夹(名称),它将打开该文件夹,如果我触摸一个文件,它应该在标签上显示名称。TListView
所以我为's OnItemClick
事件分配了一个函数。
这是代码。fpath 是字符串,Label1 显示当前文件夹,Label2 显示选定文件。
以下是扫描文件和文件夹并显示它们的函数代码。字符串列表是 TStringList。
这里的问题是,如果我ListView1->ClearItems()
在 TForm1::showfiles 中使用它会显示一条错误消息“地址访问冲突(随机否),访问地址 00000009”。如果我不使用ClearItems()
它,只需添加更多已存在行的行。我是初学者,所以我不知道我做错了什么。
delphi - 将 TSwitch 添加到每个 TListView 项
我没有尝试过,因为我不知道从哪里开始。
是否可以将 FMX TSwitch 添加到 FMX TListViewitem 中?
任何帮助/建议将不胜感激。
谢谢,