Solved

opendialog opens behind application

Posted on 2006-06-28
6
398 Views
Last Modified: 2010-04-05
I have an application which has a VERY frustrating problem.

I have an opendialog dialog which opens behind the application, effectively locking the app.

The dialog is a standard delphi one, dropped on the form as per usual.

Am I missing the obvious here?

Tony Hunt
0
Comment
Question by:TonyDelphiHunt
[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
6 Comments
 
LVL 10

Expert Comment

by:atul_parmar
ID: 16999220
Your app might have a modal form open when you open the dialog.
0
 

Accepted Solution

by:
AshusCZ earned 125 total points
ID: 17000510
I assume you didn't set the FormType to StayOnTop.. ?
0
 

Author Comment

by:TonyDelphiHunt
ID: 17007657
Thanks for both those comments.

They both sound a possibility, I don't THINK either apply but I'll have a good look on Friday when we're next working on that project.


0
 
LVL 1

Expert Comment

by:ttd
ID: 17021614
I faced this kind of problem many times, and I belive there is nothing to do with Delphi code. It might be a problem with timing and/or focus handling of the OS. You might live with it. :)

Try Alt-Tab to switch to it, or if it is open behind an always-on-top window, try this sequence: Alt-Space, Enter, press and hold an arrow key until you see it.

The Alt-Space activates the system menu of the dialog.
The Enter will select the first menu item which is usually "Move".
The arrow key will move the dialog from behind the app's main window.
0
 

Author Comment

by:TonyDelphiHunt
ID: 18261034
OOPS, Sorry about that, I was SURE I'd accepted that answer..................
0

Featured Post

Technology Partners: 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

Title # Comments Views Activity
Base1 Encode/Decode 3 100
Broadcast a message using ICS 2 51
Using MMsystem To change audio input 1 40
Connect to SQL 2008 r2 server over the Internet 4 84
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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