GSPannu
asked on
Problem with OpenDialog component: ofEnableIncludeNotify property and IncludeItem event
How to make the event IncludeItem of TOpenDialog work?
I have set the ofEnableIncludeNotify property to true and written this code.......
procedure TForm1.OpenDialog1IncludeI tem(const OFN: TOFNotifyEx;
var Include: Boolean);
begin
Include:=False;
end;
However, still all files are displayed when I execute the OpenDialog. The above code does get trigerred for every file, but soemhow the Include variable has no effect.
I know it is a bug in Microsoft implementation, (plenty of websites on internet refer to this)........... but does anyone know of a work around?
I am using Delphi 7 on Windows XP. Application deployment would be on Windows 2000 & XP, XP SP1, XPSP2 machines.
I have set the ofEnableIncludeNotify property to true and written this code.......
procedure TForm1.OpenDialog1IncludeI
var Include: Boolean);
begin
Include:=False;
end;
However, still all files are displayed when I execute the OpenDialog. The above code does get trigerred for every file, but soemhow the Include variable has no effect.
I know it is a bug in Microsoft implementation, (plenty of websites on internet refer to this)........... but does anyone know of a work around?
I am using Delphi 7 on Windows XP. Application deployment would be on Windows 2000 & XP, XP SP1, XPSP2 machines.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your quick response.
Could you email me (guru.pannu@pri.co.uk) a complete Delphi project (.pas, .dfm, .dpr) explaining what you have just written?
I haven't been able to understand your answer fully.
Thx. Guru