打开/保存文件对话框将焦点设置到文件列表视图
是否可以打开 TOpenDialog、TSaveDialog 将焦点设置为文件列表视图而不是文件名编辑框?
非常感谢
问候
is it possible to open TOpenDialog, TSaveDialog with focus set to the file list view instead of file name edit box ?
Thanks a lot
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您可以将焦点放在您喜欢的控件上,但是当您这样做时对话框应该已准备好。 “OnShow”活动对此来说还早。例如,您可以使用“OnFolderChange”事件以及一个标志,以免每次更改文件夹时都更改焦点:
You can put the focus to the control you like but the dialog should be ready when you do that. The 'OnShow' event is early for that. You can use 'OnFolderChange' event for instance, together with a flag in order to not to change the focus every time the folder is changed: