Page 1 of 1

How to open window using a button

PostPosted: Fri Jun 17, 2005 9:36 am
by ifs2003
Did anyone knows a gauge in XML that have 2 variations that when you push in it open an window like GPS, Pedistall or all other window i chouse ? how to make it ?

Re: How to open window using a button

PostPosted: Fri Jun 17, 2005 11:06 pm
by bdenni
There are a number of icons available that open the various cockpit windows (radio, gps, map, throttle/pedestal, overhead, etc.)  They are usually stored in a CAB file called SimIcons.  There is the xml file with the instruction and the bmp file that you see on the panel.  

This is the gps icon.xml content:

-
 
-
 
 
 225 (>K:PANEL_ID_TOGGLE)
 

 


Hope this helps

Re: How to open window using a button

PostPosted: Sat Jun 18, 2005 8:09 am
by ifs2003
For example i want to open an radar window (window 04 ID 99 ) What i need to change in the code ?

Re: How to open window using a button

PostPosted: Sat Jun 18, 2005 12:02 pm
by Gypsy_Baron
For example i want to open an radar window (window 04 ID 99 ) What i need to change in the code ?



Here's snippets of one of my panel.cfg files for a B757 which
uses an existing "IFR" icon to toggle a window to display the
F16 radar gauge. You should be able to find the "cpt.icons.cab"
file online if you don't already have it in you "gauges" folder.

//---------------------------------------------------------
[Window Titles]
Window00=Main-Panel
Window01=GPS
Window02=OVERHEAD
Window03=RADAR                    //<---- ID's the added RADAR window

[Window00]
file=757main.bmp
............

gauge76=cpt.icons!IFR,  950,584,19,19     //<--- ICON to toggle the RADAR window

..........

[Window03]
file=RADAR.bmp                                
file_1024=RADAR.bmp
size_mm=264
window_size_ratio=1.000  
position=0
visible=0
ident=IFR_MAIN_PANEL                      //<--- the "IFR" icon relates to this ident
window_size= 0.170, 0.230
window_pos= 0.750, 0.640

gauge00=F16!Radar,  12,26,244,187
gauge01=F16!Radar Mode,  41,251,59,20
gauge02=F16!Radar Range,  156,251,59,20

//------------------------------------------------------

Hope this helps. I also have created my own icons to toggle the
radar and TCAS windows, among others, using different IDENT
codes. If the above method doesn't suit your needs I can give
you the xml code/bmp files to do it.

    Paul

Re: How to open window using a button

PostPosted: Sat Jun 18, 2005 12:32 pm
by BFMF
I've been playing around with my own simicons also, they're quite easy to make

Re: How to open window using a button

PostPosted: Sat Jun 18, 2005 1:13 pm
by ifs2003
I still can't made it  :(

For example i teke my default simicons and in the [click] i have : 90 (>K:IFR_radar_PANEL)

and i have WINDOW04=radar and window ident 90

What to do ta made simicons open window 04 ?

Re: How to open window using a button

PostPosted: Sun Jun 19, 2005 11:22 am
by Gypsy_Baron
I still can't made it  :(

For example i teke my default simicons and in the [click] i have : 90 (>K:IFR_radar_PANEL)

and i have WINDOW04=radar and window ident 90

What to do ta made simicons open window 04 ?



Here's the XML code I use to open a radar window:


 
 
     Toggle Radar Window
     
     1065 (>K:PANEL_ID_TOGGLE)
 



In my case, the ID is "1065"....
In your case, replace the "1065" with "90"...

    Paul

Re: How to open window using a button

PostPosted: Fri Jun 24, 2005 5:09 am
by ifs2003
Thank's  ;)