Solved

ShowMessage result hiding behind main form

Posted on 2004-08-05
4
389 Views
Last Modified: 2010-04-05
I have a user complaining about one application I have, where on occasion, on certain machines, a certain call to ShowMessage will "not show up".  After he alt-tabs, it's hiding behind the main form.  As the showmessage call is in a BitBtn handler, which starts a lengthy serial process (8-10 seconds), I assumed that he was touching other things between pressing the button and the Showmessage, and that was hiding it, but I tried it on his machine, and that's not the case.  It just shows up in the background.  Other Showmessages are fine, just this one.

Any ideas?
0
Comment
Question by:sburck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
alikoank earned 125 total points
ID: 11729713
please try the following

Application.MessageBox('test','123',MB_OK + MB_TOPMOST);
0
 
LVL 4

Expert Comment

by:BedouinDN
ID: 11731989
Or perhaps you can use something like:

//-----------------------
with Application do
begin
  NormalizeTopMosts;
  MessageBox('This should be on top.', 'Look', [mbOK]);
  RestoreTopMosts;
end;
//-------------------------

CW..
0
 
LVL 3

Author Comment

by:sburck
ID: 11752644
alikoank & BedouinDN -

As it turns out, he had a special mouse driver installed which caused it to emulate a double-click there, which turning that off solved the problem; both answers were good; I gave the points to alikoank who was faster.
0
 
LVL 4

Expert Comment

by:alikoank
ID: 11752658
thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question