delphihinttopendialog

Is there a way to disable the hint for a TOpenDialog in delphi?


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?


Solution

  • 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.