• 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.

FSXA VB Dialog Disappears

Messages
319
Country
unitedkingdom
Hi,

I'm using the SimConnect managed wrapper to show a dialogue box from VB.NET 2 on screen when an option is selected on the addons menu. All works fine in windowed mode, but in full screen, dialog mode goes on and focus shifts to the dialog, but then within about half a second, the dialog disapppers and focus shifts back to FSX - which, of course, is just showing a black screen in dialog mode.

Why is the focus dropping off my window? I presume FSX is reclaiming focus as a fullscreen app, but other addons work like this. Does my code have to be executed in process to get the window to be a child of FSX or something? I do have the always in fromt flag set on the window too.
 
Out of proc addons can't display UI while FSX is in full-screen mode, only in windowed mode. InProc addons (C++ based DLL's loaded via the DLL.XML file) can display UI, if they create their windows as children of the main FSX window (window class named "FS98MAIN"). The Dialog Mode option is really there for InProc addons to use (well, and the FSX dialogs themselves :-> ).

Tim
 
Unless you really really need to leave the FSX environment, I would highly recommend you keep your UI inside FSX. The Simconnect_Text call allows you to display dialog boxes and menu's (with a bit of imagination), e.g.

manage_tracklogs.jpg


For an example in VC++/simconnect sdk, you can see the source code of sim_logger http://carrier.csi.cam.ac.uk/forsterlewis/soaring/sim/fsx/dev/sim_logger/

B21
 
Back
Top