Solved

ShowMessage result hiding behind main form

Posted on 2004-08-05
4
385 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
Comment Utility
please try the following

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

Expert Comment

by:BedouinDN
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now