ListView 改变Column宽度,滚动滚动条,触发的是什么事件?

koa3000 2002-12-05 03:03:28
ListView 改变Column宽度,滚动滚动条,触发的是什么事件?

好像并不触发ONchange事件。

请各位大虾指点,这两个动作如何写事件?

...全文
58 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
delphi_xizhousheng 2002-12-16
  • 打赏
  • 举报
回复
要是用鼠标拖动改变的话,则会触发OnColumnDragged事件


Occurs when a column is dragged to a new position.

property property OnColumnDragged: TNotifyEvent;

Description

Write an OnColumnDragged event handler to respond when the user drags a column to a new position. OnColumnDragged occurs after all columns are in their new positions but before the list view repaints to reflect the change.

OnColumnClick only occurs when ViewStyle is vsReport and ShowColumnHeaders is True.

Tip: To uniquely identify columns so that you can recognize them after they are repositioned, use the list column抯 Tag property.
collecte 2002-12-16
  • 打赏
  • 举报
回复
我也想知道

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧