Are you sure that it is the message display that is being suppressed and not
some change in the runtime conditions that lead to your application even
attempting to display the message in the first place?

 

e.g. (a completely made up example) :

 

If ForceDirectories( ' .. path to some folder in Program Files .. ' ) then

   // .. display the message

 

User reports message not being displayed, but the problem is actually a Win
7 permissions issue that is preventing ForceDirectories() from being
successful, not a failure to display the message.

 

This is not a very plausible real-world example, but is intended only to
illustrate my point/question.

 

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Stephen Barker
Sent: Wednesday, 20 January 2010 11:16 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] windows 7 and messagedlg

 

Hi,

 

I have a report from a Windows 7 user that a message from my app does not
show unless XP compatibility mode is selected.

 

The code that should fire is:

 

  messagedlg(msg, mtCustom, [mbOk], 0);

It is being ignored when run under normal Windows 7 default mode.

 

Any ideas?

 

I don't use Windows 7 here yet, but it looks like I may have to set up a
test environment. Actually I just have done a quick test using a simple
Delphi exe on Win 7 and it works fine. Must be something else in my app that
is causing the messagedlg to be suppressed. I guess I'll have to set up a
full Delphi 2007 install with components on Win 7 and debug this properly.

 

Regards,

Steve Barker
Webdata Ltd
ph +64 9 4103074 

 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with Subject: 
unsubscribe

Reply via email to