[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • Last Modified:

opendialog opens behind application

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
TonyDelphiHunt
Asked:
TonyDelphiHunt
1 Solution
 
atul_parmarCommented:
Your app might have a modal form open when you open the dialog.
0
 
AshusCZCommented:
I assume you didn't set the FormType to StayOnTop.. ?
0
 
TonyDelphiHuntAuthor Commented:
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
 
ttdCommented:
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
 
TonyDelphiHuntAuthor Commented:
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now