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

Add a Menu Bar Item on P3D using C#

Messages
4
Country
brazil
Hello everyone!

I want to add a P3Dv5 Menu Bar on Item (like these) on my C# Program.
323.png



How i proceed?



Kind regards,
 
How i proceed?
1. By also posting this question on the dedicated Prepar3D forums over here:
-https://www.prepar3d.com/forum/viewforum.php?f=6307

I want to add a P3Dv5 Menu Bar on Item (like these) on my C# Program.
2. - What is it exactly what you want to achieve?
- adding an extra, brand new [Main-Menu] item to the main p3D menu?
- adding a sub-menu-entry, into an already existing [Main-Menu] menu?
- option 3,4,n?
 
Thanks for fast reply.
I want a "main menu" like GSX or FSLabs Spotlights on my print and a 2 sub-menus, and when the person clicks on them perform a action.
 
I want a "main menu" like GSX or FSLabs Spotlights on my print and a 2 sub-menus, and when the person clicks on them perform a action.
Thank for the clarification, I know understand what you are referring too.
1 - What you actually see under / inside the [Add-ons] main_menu bar are the P3D Add-ons that have been installed on that same computer.

2 - So If you want to create your own menu-entry inside that list, you need to find out the following things:
- Where, inside which files does P3D store its own information on which add-ons have been installed
- How do the installers of those add-ons actually work
- Which type of information is being added to the P3D add-ons configuration files
Why? When you start up P3D, if first reads those add-on configuration files, so the program is able to load them into memory
before the simulator shows its User interface and its menus on screen to you as the end_user

3 - Here are some links to get you started digging deeper into how P3D uses which types of configuration files "under-the-hood":
-https://www.prepar3d.com/SDKv5/LearningCenter.php - P3D V5 SDK Online Learning Center
-https://www.prepar3d.com/SDKv5/sdk/add-ons/add-ons_overview.html - Add-on development section
-https://www.prepar3d.com/SDKv5/sdk/add-ons/add-on_packages.html - Creating add-on packages
-https://www.prepar3d.com/SDKv5/sdk/add-ons/add-on_configuration_files.html - Add-on configuration file packages
 
Hello…

Thanks for asking, but I think I don’t explained it very well… I already knew how to configure an addon… But I needed examples in C# of how I could be doing this

Kind regards
 
Back
Top