Solved

Program is not visible in Windows ALT+TAB

Posted on 2014-10-10
4
332 Views
Last Modified: 2014-10-17
Hi,

When I start my Delphi application and press Windows ALT+TAB the app will show in the list of available application where one can jump to. But as soon as I open another form (Form2.ShowModal), than the application disappears from the ALT-TAB list.

Is there a way to solve this?
0
Comment
Question by:Delphiwizard
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
Zaheer Iqbal earned 500 total points
ID: 40372667
It's a Feature of Windows 7, and not a bug.

The solution is to either remove the 'Tool window' from the Dialog Properties, or to remove 'WS_EX_TOOLWINDOW' from the RC file.

If you want to restore the expected Win XP behavior, just add a DWORD registry key named

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AltTabSettings

And set the value to 1
0
 

Author Comment

by:Delphiwizard
ID: 40372729
How does one remove 'WS_EX_TOOLWINDOW' from the RC file?
Is this a one-time only action on application-level or needs this to be done for every (new) toolwindow?

Changing the registry result in ALT-TAB in the old Windows XP-stype which is not the desired outcome.
0
 
LVL 19

Expert Comment

by:Thommy
ID: 40372763
@1stITMAN: don't adorn yourself with borrowed plumes!!!

You have taken your answer from App disappears from Win7's ALT-TAB list sometimes without citing the source...
0
 

Author Closing Comment

by:Delphiwizard
ID: 40386104
First I hoped for a workaround by code to make the toolbox window available ofr ALT+TAB, but I've decided to go for the lean and mean approach. So I changed all Toolbox forms to type Dialog.
This solved it perfectly. Thank you for sharing the solution of others, it works for me :-).
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

18 Experts available now in Live!

Get 1:1 Help Now