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

P3D v4 2D universal panel

Messages
578
Country
france
Hello all
I've seen that IVAP or come other add-ons have a universal 2D panel that is accessible from the Add-ons menu.
Well, I've been looking in the SDK and the simconnect SDK but I couldn't find anything about those floating panels or how can we design them.
Can you plz tell me how to make it or is there any documentation that I can read.

I use C# (if it needs C++ I'll be ready to start converting the code)

thnx in advance :)
 
I think their are basically a gauge designed using GDI or smth similar


Sent from my iPhone using Tapatalk
 
GDI plus is a graphics engine built into windows so you can use it inside those gauges. There is an example somewhere here around it will help you


Sent from my iPhone using Tapatalk
 
I GDI+ guy. I use C++ to create GDI+ gauge.
sample
https://www.fsdeveloper.com/forum/resources/gdi-gauges-drawing-msdn-example.162/

floating panel, can be done using xml too. for short, fast learn and bunch of sample, better use xml instead C++/GDI+. if you want to deal with Simconnect, you must work in C++. but
there an XMLtool that create by a developer in this community, to help XML programmer to expand xml limitation without need to learn C++.
just find out that tool on Resources from this beloved website.
 
I've seen that IVAP or come other add-ons have a universal 2D panel that is accessible from the Add-ons menu.
Well, I've been looking in the SDK and the simconnect SDK but I couldn't find anything about those floating panels or how can we design them.
Can you plz tell me how to make it or is there any documentation that I can read.
I think IVAP example are not a panel but a window. Connection and flight plan windows have buttons, textboxes and other UI elements.

Your application can add items to Add-ons menu using SimConnect SimConnect_AddMenuItem look at the the sample MenuItems. If you develop in-process dll on C++ in addition to the SimConnect you can also use PDK Menu Service.

I use C# (if it needs C++ I'll be ready to start converting the code)

If you already use C# then you develop managed exe application. You can't use C# for panels in P3D. As mentioned above only XML or C++ with GDI+, Direct2D, Direct3D.

But I can offer you next.
Your exe application on C# can be called on P3D startup using add-on.xml and pass it an command line argument. Your application starts and add items to the Add-ons menu but doesn't show any windows. When user wants to interact with your window it call Add-ons -> YourItem and window is shown. Do some interaction and close window but not application.

I have made example on C++ with that approach https://github.com/Prepar3DGuy/TryP3D_Git I hope this helps you.
 
Back
Top