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

Question about DialogMode

Messages
30
Country
spain
Hi!

I would like to show a window during the flight in the simulator (for example when the user selects an option in the menu) and I have no problem if the simulator pauses while the dialog is shown (in fact, it's what I want in this case).

I've seen that some threads talk about DialogMode but I've tried it and I can't figure how it works exactly. Let me explain :P

If I put the simulator in dialog mode, the simulator gets paused with the screen in black until I change the state again. It's ok. But my question is, how can I show a dialog? I'm developing my application in C# using the managed simconnect API. If I try to show the simplest dialog with this simple code:

Code:
MessageBox.Show("some message");

My application show the dialog but in most of the cases it doesn't popup in front of the simulator window. Furthermore, if the simulator is maximized it never show up in front.

So, how can I pause the simulator and show a window in front of the simulator window? (in both cases, when the simulator is in windowed mode and fullscreen).

Thank you very much!! Any help will be appreciated!
 
there's a long series of talented people before you that have had the same issue, including on fsdeveloper...

e.g. in this post here

Unless you positively have to have a Windows GUI interaction with the user, I'd recommend you use the Simconnect_Text API - for something as basic as a messagebox you could use a simple text menu with "9 - OK" "0 - CANCEL" and the users would be perfectly happy. Of course the text lines on the menu would also act as menu options but you'd have the menu event handler treat text lines the same as option '0' so there's no extra code. I've tested this approach and personally think users would prefer it. For entering data into text fields there's not much alternative to a windows form though.

Anyway I signed up on your website and still have no clue what your prog is going to do... looks interesting tho!

cheers
B21
 
Hi, thanks for you reply and thanks for trying the website ;)

Currently it's on a beta phase and in fact I'm redeveloping the client software. At this stage is only a flight tracker that tracks your flight in the website in real time and after the flight it stores it in your flight history. In both cases you can see the route on a map.
Apart from this, I'm preparing new functionality that will include social networking sharing, export to virtual airlines, cabin crew simulation and always I'm aware of what users would like to have so if you have any idea ;)
 
Back
Top