Scrap that thought. The ShowMessage calls the same routine as MessageDlg with dialog type Custom.
There is a winApi call to get a window to display on top of others. BringWindowToTop or try FlashWindowEx. ----- Original Message ----- From: James Sugrue <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Sent: Thursday, January 23, 2003 8:31 AM Subject: Re: [DUG]: showmessage - weird behaviour > Not basing this on fact just theory, but maybe MessageDlg is a Modal form > whereas ShowMessage isn't ? > > ----- Original Message ----- > From: Alistair George <[EMAIL PROTECTED]> > To: Multiple recipients of list delphi <[EMAIL PROTECTED]> > Sent: Thursday, January 23, 2003 8:11 AM > Subject: [DUG]: showmessage - weird behaviour > > > > Hi all. > > On completion of a process my app is meant to showmessage. Sometimes the > > message is obscured, the only way to view it is to Alt-Tab. It does not > seem to > > happen if I use MessageDlg. Is there a difference between the two? Or > could it > > be this stupid WinXP thing again? > > > > Showmessage( MessageDlg(errstring + IntToStr(SuccessCnt) + ' file' + > IsOne + ' added'); > > ^==Works intermittent > > > > MessageDlg(errstring + IntToStr(SuccessCnt) + ' file' + IsOne + ' added', > mtInformation, [mbOK], 0); > > ^==Seems better > > > > Thanks, > > Alistair+ > > > > -------------------------------------------------------------------------- > - > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
