Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ShowMessage result hiding behind main form

Posted on 2004-08-05
4
Medium Priority
?
395 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 500 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

916 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