在代码中设置 TShellListView 持久列宽度

发布于 2024-07-26 23:03:23 字数 161 浏览 7 评论 0原文

有没有办法使用代码在 vsReport 模式下持久设置 Delphi 2007 TShellListView 上的列宽度? 普通的 ShellListView.Columns[0].Width 属性仅设置当前目录的宽度,每次更改当前目录或刷新文件列表(包括通过代码进行的刷新和目录更改,用户双击文件夹等)。

Is there any way to persistently set the column widths on a Delphi 2007 TShellListView in vsReport mode using code? The normal ShellListView.Columns[0].Width property only sets the width for the current directory, and that width is reset after every change of the current directory or refresh of the file list (including refreshes and directory changes made via code, the user double-clicking a folder, etc.).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

请叫√我孤独 2024-08-02 23:03:23

使用其 Columns 属性:

ShellListView.Columns[0].Width := 200;

Use its Columns property:

ShellListView.Columns[0].Width := 200;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文