Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Application does not come to the top of the z-order  (Read 11993 times)
Sundar K.
Posts: 17


« on: February 09, 2010, 09:56:24 pm »

After the GDC is started, the first application launched does not come to the top of the Windows z-order and appears in the Task-bar in a different color.

This is an old issue and occurs in all versions of GDC through 2.11.13.
Reuben B.
Four Js
Posts: 1119


« Reply #1 on: February 09, 2010, 10:35:03 pm »

How does the user start the GDC, and launch the first application?


Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
.
Four Js
Posts: 115


« Reply #2 on: February 10, 2010, 09:32:28 am »

Actually this is in the hands of the window manager, which most of the time prevents application from stealing the focus.

Just imagine you're checking your bank account online and while you start writing your login information someone starts an 4GL program which will steal the focus, and then get your credentials.

Most of the window manager allows to configure this, for instance on Windows XP there is a registry entry for that:

http://pcsupport.about.com/od/windowsxp/ht/stealingfocus02.htm

But as you can see, default is that an application can't steal the focus.

As Reuben pointed, the way you start your application has an impact: if you are in GDC and then start an application via a shortcut, chances that the focus stays on GDC are high (if you don't show the terminal) ; if you run your 4GL application externally (i.e. from a command prompt, or from your terminal emulator), chances GDC is not allowed to get the focus are high.
This is why we're using the "flashing taskbar entry" method in addition to the "raise and set focus".

Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines