Sign in to follow this  
Guest JeanLuc_

Building Menu-Item Overlay Panel..

Recommended Posts

Hello there..I want to build an add-on that requires an overlay window. It will be like a moving map that I'd like to be available from a drop-down menu item rather than as a gauge that needs to be associated with each aircraft. Can somebody provide me with any pointers on doing this? All I need from the simulator is lat-long info in real-time. I've looked through the gauges SDK, but didn't see it.Any and all help greatly appreciated.JM

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Welcome to the forums! :-)From the Panels and Gauges SDK, TokenVar.doc:PLANE_LATITUDETo get degrees divide by 40007000 and multiply by 360;PLANE_LONGITUDETo get degrees divide by 281474976710656 and multiply by 360.Furthermore you will need special code for the in-menu thing.Etienne :-wave

Share this post


Link to post
Share on other sites

Thanks for the prompt response! I've checked this out and it may be the solution. May be more than what I need, but it looks good..CheerioJM

Share this post


Link to post
Share on other sites

Can anybody give me more pointers on "special code?" I looked at FSUIPC--it's a start, but perhaps doesnt help me too much in this regard from what I can tell.I'm an experienced programmer, but new to FS.thanksJ

Share this post


Link to post
Share on other sites

Hi JM,for the menus, here is a good start. For going further:http://ftp.avsim.com/dcforum/DCForumID9/2339.html#12====================================================================#define MENOPT1 MF_BYCOMMAND|MF_ENABLED|MF_STRING|MF_DEFAULT|MF_SYSMENU|MF_HELP|MF_MOUSESELECT#define MENOPT2 MF_BYCOMMAND|MF_ENABLED|MF_STRINGvoid MakeFSMEnu(void){ fshwnd = FindWindow("FS98MAIN", NULL); // now get the handle to the FS menu if (fshwnd != NULL) { fsmenu = GetMenu(fshwnd); if (fsmenu != NULL) { optionmenu = GetSubMenu(fsmenu,3); if (optionmenu != NULL) { AppendMenu(optionmenu, MF_SEPARATOR | MENOPT2, 0, NULL); menu = CreatePopupMenu(); AppendMenu(menu, MENOPT2 , 0x9800, "Piper Meridian"); AppendMenu(menu, MENOPT2 , 0x9801, "Flight Line Avionics"); AppendMenu(optionmenu, MF_POPUP | MENOPT2, menu, "Reality XP");// AppendMenu(fsmenu, MENOPT2, menu, "Reality XP"); DrawMenuBar(fshwnd); }Hope this helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this