Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenDialog stayontop?

Status
Not open for further replies.

Corson

Programmer
Mar 28, 2007
2
CA
Hello all--

I have run into an interesting problem:

On Windows XP, upon launching an OpenDialog dialog by clicking a button on a Delphi form, that OpenDialog is displayed on top of its parent window. So far so good.

Now, if I switch desktops using a desktop pager (such as VirtuaWin) and then I return to the original desktop, the OpenDialog is no longer displayed on top of the parent form window. Instead, the OpenDialog window is under its parent form window, despite the fact that it runs as a modal dialog. That is not the expected behavior and it is inconsistent with similar behavior in MS Word etc.

Is there a "stayontop"-like property for the OpenDialog object in (Turbo) Delphi that can keep it on top of its parent window when switching desktops? I couldn't find such a property that I can set programmatically.

Thank you for any help you can provide.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top