“TFileOpenDialog 需要 Windows Vista 或更高版本”
我尝试使用新的 TFileOpenDialog,但现在我的应用程序不再与 Windows XP 兼容。我发现TFileOpenDialog仅适用于Vista和7。似乎TFileOpenDialogand不会检查它是否在Win XP下运行,以便自动静默降级到TOpenFileDialog。相反,它只显示一条错误消息。我缺少什么吗?有一个包装器提供此功能,还是我必须切换回经典的 TOpenFileDialog?
我不明白为什么 Embarcadero 必须抛弃 Borland 的帮助系统并从零开始构建一个新的(最糟糕的)。
I have tried to use the new TFileOpenDialog and now my application is not compatible with Windows XP anymore. I find out that TFileOpenDialog only works on Vista and 7. It seems that TFileOpenDialogand does not check if it is running under Win XP in order to automatically and silently downgrade to TOpenFileDialog. Instead it just shows an error message. There is something I am missing? There is a wrapper that offers this functionality or I have to switch back to the classic TOpenFileDialog?
I don't understand why Embarcadero had to toss Borland's help system and build a new one (much worst) from zero.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
TOpenDialog
并将UseLatestCommonDialogs
设置为true
。您不会获得新的(Vista 及更高版本)属性(例如OkButtonLabel
),但至少从用户的 POV 来看,外观和感觉都很好......Use
TOpenDialog
and setUseLatestCommonDialogs
totrue
. You don't get the new (Vista and up) properties (likeOkButtonLabel
) but at least the look and feel will be fine from a user's POV...是的,它的名字是
TOpenDialog
。Yes, it is called
TOpenDialog
.