Ralph
if Application.HelpContext(10200) then
begin
// mail.hlp file found
Application.Restore;
end
else
begin
// mail.hlp file not found
Application.Minimize;
end;
>The code below is susposed to minimize my app if the .hlp file is not
>found, however, the else statement doesn't seem to be firing - I think
>it is because when the windows dialog box displays saying no help file
>can be found the focus has already switched away from my app - there
>must be some std way to allow an app to detect that the hlp file is
>missing and let it minimize itself so the user can see the dialog box
>informing them of this fact???
Ralph,
if FileExists(Application.HelpFile) then
// Do help call here...
else
// Minimize app...
Another point I should mention about Application.Minimize: I've read
several messages on the newsgroups about Delphi 5 handling this method call
differently than previous versions did. Specifically, sometimes in D5 the
app won't minimize. A workaround is to minimize the main form of the
application: MyMainForm.WindowState := wsMinimized.
HTH,
Chris.
---------
if FileExists(Application.HelpFile) then
begin
// Do help call here...
Application.HelpContext(10200);
end
else
begin
// Minimize app...
Application.HelpContext(10200);
Application.Minimize;
end;
Ralph
Application.HelpContext(10200);
if not FileExists(Application.HelpFile) then Application.Minimize;
Ralph Freshour <ra...@primemail.com> wrote in message
news:39646c8a...@news.concentric.net...