Solved

ShowMessage result hiding behind main form

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

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…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month5 days, 15 hours left to enroll

626 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