Solved

ShowMessage result hiding behind main form

Posted on 2004-08-05
4
388 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
  • 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

Independent Software Vendors: 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

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…

679 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