Jump to content

Button in the Panel to open custom window


Recommended Posts


Have created my own autopilot using some existing gauges and my own .bmp. Then have added new window to the aircraft panel.cfg.

Works great, but every time I need to make my autopilot visible I need to open the menu and go to views/instrument panel and select my AP window to show.

Ideally, I would like to have a button in the panel to open/close this window. (Just like the GPS, or Comms buttons, common in most default aircraft).

Any clue on how to create this button would be much appreciated.



Peter Bendl

ex. British Airways

Link to comment
Share on other sites



First create a little icon BMP. I took one of the existing icon textures (from an addon panel, but it could be from anywhere), erased the current icon symbol, and put AP on it instead. I named mine icon_AP.bmp


Next create the XML gauge code. Here is what I used, I named it Icon_AP.xml:


Display/Hide Autopilot



You can use Notepad to create it, but it should end in .xml instead of .txt. It gets placed into a folder (which can contain many XML gauges), along with its BMP file. You can also put it into a CAB file, but that's not required. My XML and BMP files went into a folder called DC6pnl, located in the main Gauges folder (the folder can also be placed into the plane's panel folder if not used for any other planes).


Next you add the icon gauge to the panel.cfg file. I added mine to the main panel (Window00 in my case) in this line:


gauge75=DC6pnl!Icon_AP, 361,1065,21,21


Your gauge number, XY location (first two numbers) and size (last two numbers) will be different.



Finally, when I was adding my subpanel into this panel.cfg file, I made sure that it contained this line:





Now when I click the icon the AP panel pops up (or goes away).


Hope this helps,

Tom Gibson


CalClassic Propliner Page: http://www.calclassic.com

Link to comment
Share on other sites

  • 4 weeks later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...