【问题标题】:How i can replace the images of a Treeview used to expand and collapse a node?如何替换用于展开和折叠节点的 Treeview 的图像?
【发布时间】:2012-04-04 21:53:38
【问题描述】:

我正在使用 TCustomTreeView.OnCustomDrawItem 事件来更改 TTreeview 节点的颜色,但现在我需要替换用于展开和折叠节点的图像,但我坚持这一点。我如何替换用于展开折叠节点的 Treeview 的图像?

【问题讨论】:

    标签: delphi delphi-xe2


    【解决方案1】:

    标准的TTreeView 组件不允许您直接或通过所有者绘图替换展开/折叠图像。您必须找到支持它的第三方 TreeView 组件。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多