This is what I use in my panel ,
Code:
<Gauge Name="Panel Icon" Version="1.0">
//for F-111 by Karol Chlebowski @2009**
<Image Name="Icon_Panel.bmp" ImageSizes="59,19,30,30"/>
<Mouse>
<Tooltip>Toggle Co-Pilot's Window</Tooltip>
<Cursor Type="Hand"/>
<Click>400 (>K:PANEL_ID_TOGGLE) 1 (>K:PANEL_ID_TOGGLE) (L:Viewpoint,bool) ! (>L:Viewpoint,bool)</Click>
</Mouse>
//the 400 = ident in panel cfg **
</Gauge>
I have this toggle switch in both 2D cockpits .
Following is the Panel cfg sections that are relevant ,
PANEL CFG .
[Window Titles]
Window00=Main Panel //dummy
Window01=Pilot Panel
Window05=Co Pilot
//---Pilot Panel ---
[Window01]
file=F-111v2pnl.bmp
size_mm=1366,768 //1024,768
window_size_ratio=1.000
position=7
visible=1
ident=1
zorder=00
window_size= 1.000, 1.000
window_pos= 0.000, 0.000
gauge00= ......
//---Co Pilot Panel---
//--------------------------------------------------------
[Window05]
file=F-111v2pnlcp.bmp
size_mm=1366,768 //1024,768
window_size_ratio=1.000
position=7
visible=0
ident=400
zorder=00
window_size= 1.000, 1.000
window_pos= 0.000, 0.000
gauge00= ......
Notice both " ident = " and " zorder= " used above
1. In the above setup when in the LH 2D Pilot cockpit a click at the Panel Icon switches Off the LH 2D Pilot cockpit and switches On the RH 2D Co Pilot cockpit ,
2. a click on the Panel Icon while in the RH 2D Co Pilot cockpit switches it Off and switches the LH 2D Pilot cockpit On .
Cheers
Karol