Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Oct : MAPI and Outlook Express and Modal calling forms

www.cryer.info
Managed Newsgroup Archive

MAPI and Outlook Express and Modal calling forms

Subject:MAPI and Outlook Express and Modal calling forms
Posted by:"Maya McLeod" (ma..@orbitsa.co.za)
Date:Mon, 3 Oct 2005 10:03:10

Hi,

Problem: calling MapiSendMail, with ShowDialog option switched on, from a
modal MDI child form, results in the calling form becoming non-modal after
email screen is closed by the user.

Steps to reproduce: In Delphi 6, go to File|New|MDI Application. Create a
new modal form, and create an option to show the form for testing purposes.
Drop a button onto the modal form, and an actionlist. Add a std action
"SendMail" and link the action to the button.
Set your default email client to Outlook Express (latest verion). Then run
the application, open the modal form, and click on the Send Email button.
After closing the email dialog (doesn't matter whether you actually send the
message or not), the screen flickers a bit, and the calling form is no
longer modal, and so clicking elsewhere in the app will make the screen
disappear.

I have had a look at the TCustomForm's source, and the Modal properties of
the form, seem to be determined by Delphi, rather than windows.

I have attempted to report this problem to Microsoft via various channels,
but that is like banging your head against a brick wall. Frustrating, and no
use.

Although this might seem like a small issue, it just so happens to cause
major headaches in my application, due to the fact that is used data
modlules, and QR Design, Quickreports - the whole combination results in a
problem pretty sticky to create a workaround for, which does not involve
upsetting the custom designed layouts for thousands of our customers. The
end result, is basically that my customers are emailing their customers the
wrong invoices! Pretty serious.

Since I'm not having much luck with MS here, 2nd prize would be a suitable
workaround, if you can think of one.
3rd prize, would be if Borland could confirm with me that the problem lies
with Outlook Express, and not with Delphi (my customers are now jumping up
and down saying that my app is not windows compatible).

Any help would be much appreciated.

Regards
Maya

Replies:

www.cryer.info
Managed Newsgroup Archive