有没有办法在delphi中禁用TOpenDialog的提示? [英] Is there a way to disable the hint for a TOpenDialog in delphi?

查看:90
本文介绍了有没有办法在delphi中禁用TOpenDialog的提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在运行时创建的TOpenDialog组件,我想禁用使用该文件时在文件上弹出的提示.除了创建对象,执行对象和提取文件名然后释放实例之外,我没有为此编写任何exrta代码.

I have a TOpenDialog component I am creating on runtime and I want to disable the hint that pops up over files when it is used. I have not written any exrta code for this than creating the object, executing the object and extracting the filename,, then freeing the instance.

我可以做我想做的事吗?如果是这样,我该怎么办?

Can I do what I want to do? If so, how do I do this?

推荐答案

我在Google上搜索了"opendialog崩溃工具提示",第一次点击就给了我

I googled for "opendialog crash tooltip" and the first hit gave me this. The solution for their problem (and probably yours) is this:

[...]

[...]

您只需要将此修改添加到应用程序的第一种形式:

You only need to add this modification to the first form of your application:

uses ActiveX;

initialization
  OleInitialize(nil);

finalization
  OleUninitialize 
end.

这篇关于有没有办法在delphi中禁用TOpenDialog的提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆