How to open window using a button

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

How to open window using a button

Postby ifs2003 » Fri Jun 17, 2005 9:36 am

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 ?
ifs2003
Ground hog
Ground hog
 
Posts: 48
Joined: Sat Aug 02, 2003 8:41 am

Re: How to open window using a button

Postby bdenni » Fri Jun 17, 2005 11:06 pm

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
User avatar
bdenni
2nd Lieutenant
2nd Lieutenant
 
Posts: 69
Joined: Mon Jul 28, 2003 3:31 pm
Location: Glendale, AZ

Re: How to open window using a button

Postby ifs2003 » Sat Jun 18, 2005 8:09 am

For example i want to open an radar window (window 04 ID 99 ) What i need to change in the code ?
ifs2003
Ground hog
Ground hog
 
Posts: 48
Joined: Sat Aug 02, 2003 8:41 am

Re: How to open window using a button

Postby Gypsy_Baron » Sat Jun 18, 2005 12:02 pm

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
Image
User avatar
Gypsy_Baron
1st Lieutenant
1st Lieutenant
 
Posts: 467
Joined: Tue Oct 05, 2004 6:33 pm
Location: Daly City, California

Re: How to open window using a button

Postby BFMF » Sat Jun 18, 2005 12:32 pm

I've been playing around with my own simicons also, they're quite easy to make
BFMF
Colonel
Colonel
 
Posts: 16266
Joined: Mon Feb 25, 2002 6:06 pm
Location: Pacific Northwest

Re: How to open window using a button

Postby ifs2003 » Sat Jun 18, 2005 1:13 pm

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 ?
ifs2003
Ground hog
Ground hog
 
Posts: 48
Joined: Sat Aug 02, 2003 8:41 am

Re: How to open window using a button

Postby Gypsy_Baron » Sun Jun 19, 2005 11:22 am

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
Last edited by Gypsy_Baron on Sun Jun 19, 2005 11:23 am, edited 1 time in total.
Image
User avatar
Gypsy_Baron
1st Lieutenant
1st Lieutenant
 
Posts: 467
Joined: Tue Oct 05, 2004 6:33 pm
Location: Daly City, California

Re: How to open window using a button

Postby ifs2003 » Fri Jun 24, 2005 5:09 am

Thank's  ;)
ifs2003
Ground hog
Ground hog
 
Posts: 48
Joined: Sat Aug 02, 2003 8:41 am


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 406 guests