• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Main Window Loses Focus

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,981
Country
unitedkingdom
We have had several reports that the ADE main display will end up behind other windows after closing a dialog window. I would appreciate a list of when this happens. So if you experience it please let me know which dialog (or other secondary window) you closed when the main window gets lost...

Thanks
 
On my XP system it often opens hidden behind an explorer window. However, during tests this morning I got:



Followed by an empty window:



Code:
07:56:20:INFO_: 
07:56:20 ====== BEG Program.Main =====
07:56:20:INFO_:     Enable Visual Styles
07:56:20:INFO_:     Check Single Instance
07:56:20:INFO_:     Target Version: FSX
07:56:20 ======     BEG ADEUtil.TryUpdate =====
07:56:20:INFO_:         No Update Available
07:56:20 ======     END ADEUtil.TryUpdate 0.494s =====
07:56:20:INFO_:     Start Splashscreen
07:56:20:INFO_:     New Mainform
07:56:20 ======     BEG MainForm.Constructor =====
07:56:20:INFO_:         ADE v01.43.01
07:56:20:INFO_:         SDELib v04.04.01
07:56:20:INFO_:         CommonLib v01.04.00
07:56:20:INFO_:         Execute MainForm.initForm[CODE]
07:56:20:ERROR: Exception Mainform.constructor
Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at ScruffyDuck.AirportDesignEditor.Splasher.set_Status(String value)
at ScruffyDuck.AirportDesignEditor.MainForm.initForm()
at ScruffyDuck.AirportDesignEditor.MainForm..ctor()
07:56:37 ====== END MainForm.Constructor 17.21s =====
07:56:37 ====== END Program.Main 17.754s =====[/CODE]
 
On my XP system it often opens hidden behind an explorer window. However, during tests this morning I got:



Followed by an empty window:



Code:
07:56:20:INFO_: 
07:56:20 ====== BEG Program.Main =====
07:56:20:INFO_:     Enable Visual Styles
07:56:20:INFO_:     Check Single Instance
07:56:20:INFO_:     Target Version: FSX
07:56:20 ======     BEG ADEUtil.TryUpdate =====
07:56:20:INFO_:         No Update Available
07:56:20 ======     END ADEUtil.TryUpdate 0.494s =====
07:56:20:INFO_:     Start Splashscreen
07:56:20:INFO_:     New Mainform
07:56:20 ======     BEG MainForm.Constructor =====
07:56:20:INFO_:         ADE v01.43.01
07:56:20:INFO_:         SDELib v04.04.01
07:56:20:INFO_:         CommonLib v01.04.00
07:56:20:INFO_:         Execute MainForm.initForm[CODE]
07:56:20:ERROR: Exception Mainform.constructor
Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at ScruffyDuck.AirportDesignEditor.Splasher.set_Status(String value)
at ScruffyDuck.AirportDesignEditor.MainForm.initForm()
at ScruffyDuck.AirportDesignEditor.MainForm..ctor()
07:56:37 ====== END MainForm.Constructor 17.21s =====
07:56:37 ====== END Program.Main 17.754s =====[/CODE]

That's something different George. We have seen that before but I have never been able to track it down. It comes up now and then during the splash screen and is probably caused by doing something else while the app is loading.
 
Yes, but as I said, it often "opens" under an explorer window. However it is sporadic and doesn't always happen.
 
Yes, but as I said, it often "opens" under an explorer window. However it is sporadic and doesn't always happen.

I have added it to the issue tracker George as I readlly should try and tack it down
 
I have added it to the issue tracker George as I readlly should try and tack it down

Jon,...

it happens when saving / compiling (both actually).... but as mentioned before its sporadic.... I'll start testing more tonight and maybe pinpoint it farther...
 
Jon,...

it happens when saving / compiling (both actually).... but as mentioned before its sporadic.... I'll start testing more tonight and maybe pinpoint it farther...

George,...

Just a thought... does it happen when auto-saving for you? I'm trying to remember.... but its so sporatic... not sure:rolleyes:
 
So far its been after any edit subwindow. Runway, taxiway, aprons and objects.
Also notice that when this happen I have to minimize and maximize to get it back on top by clicking the ADE at the bottom bar. No matter where I click in the ADE window that might show behind an explorer window it will not go to front.
 
This generraly occurs when finished editing an object properties ( e.g. changing numeric heading ).

I click the OK button and Pow! ... FireFox takes the Foreground window.

What is odd is if I immediately Alt-Tab, it doesn't switch back to ADE but some other window.

Hope this helps. Can't force a repeat, but when it happens I'll post additional specifics here.
 
Last edited:
Im not sure if this is what you mean but:

When I am assigning parking spots at an airport and I do more than one at a time then click 'OK' the main window goes behind other things like my web browser.:eek:
 
Im not sure if this is what you mean but:

When I am assigning parking spots at an airport and I do more than one at a time then click 'OK' the main window goes behind other things like my web browser.:eek:

Yes - that is the problem. It should now be fixed :)
 
Pretty much every time I add a library object the window gets sent to the bottom of the stack. The weird thing however is that the application is still the active program. (AKA the titlebar doesn't change to inactive and thus clicking on the ADE window won't bring it back to the top of the window stack.) I'd say to start with whatever function is called when you click OK on the add library object box.

As a workaround for this, minimizing all other programs will make the effect unnoticeable. (The program isn't actually losing focus, the main window is just getting hidden below the window of the next application in the z-order.)
 
Pretty much every time I add a library object the window gets sent to the bottom of the stack. The weird thing however is that the application is still the active program. (AKA the titlebar doesn't change to inactive and thus clicking on the ADE window won't bring it back to the top of the window stack.) I'd say to start with whatever function is called when you click OK on the add library object box.

As a workaround for this, minimizing all other programs will make the effect unnoticeable. (The program isn't actually losing focus, the main window is just getting hidden below the window of the next application in the z-order.)

OK thanks I will look at that.
 
Back
Top