Page 1 of 1

panel buttons/switches

PostPosted: Sat Mar 27, 2004 10:57 pm
by bond
:(   Can anyone please tell me how do i make a panel button open a different window then the one it does?
Example,..the button opens an overhead panel,=(widow number 4) i need it to open a different window.(window number 10) how do i do this?

Re: panel buttons/switches

PostPosted: Sun Mar 28, 2004 8:55 am
by WebbPA
Change the "ident=" line.  Here's an example from Tipster's Beech Baron panel.  

[Window01]
Background_color=0,0,0
size_mm=640
window_size_ratio=1.00  
position=0
visible=0
ident=GPS_panel
window_size= 0.226, 0.482
window_pos= 0.774, 0.432 ...

[Window02]
file=overhead.bmp
size_mm=604
window_size_ratio=1.00  
position=0
visible=1
ident=overhead_panel
window_size= 1.000, 0.130
window_pos= 0.000, 0.000 ...

I'm not sure how well this is addressed in the SDK but if you want to post the file we can figure it out.

Re: panel buttons/switches

PostPosted: Mon Mar 29, 2004 3:04 am
by BFMF
It is possible to create your own XML gauge to open whatever window you want to create. I've done it for several personal panel projects, but it's been a while

Re: panel buttons/switches

PostPosted: Mon Mar 29, 2004 4:56 am
by microlight
Yep, as WebbPA says: any [window] box that you put an ident line in that references a specific button, then that button will open that window. Some panels already have dedicated buttons, which you can press into service elsewhere. You could even have the default M$ buttons doing different things, if you want: e.g. the GPS button could open the radio stack.

:)

Re: panel buttons/switches

PostPosted: Mon Mar 29, 2004 9:27 pm
by bond
Thanks for helping out,,,i tried using different IDENT...but nothing.  This is how it all started,i have a panel button that opens an overhead lights panel,what i did is i took another button from a different panel from a different plane (that opens an overhead panel on that plane) and inserted it into the first panel,because i have a second panel overhead that has all the engine start commands etc...you see,..i wanted to use the new button to open the second overhead panel,but now both buttons open the same panel. does this make any sense?. i used FS PANEL STUDIO to copy the button,and then notepad to edit the PANEL.CFG file.

Re: panel buttons/switches

PostPosted: Mon Mar 29, 2004 10:08 pm
by WebbPA
That makes sense.  Even though the buttons look different the are probably triggering the same "ident" code.  Get cpt.icons.cab from AVsim (maybe it's available here). It has a lot of different buttons you can use.

Re: panel buttons/switches

PostPosted: Mon Mar 29, 2004 10:13 pm
by bond
i will try it,,thats again for your help  :)

Re: panel buttons/switches

PostPosted: Wed Mar 31, 2004 11:39 am
by bernadic
I don't know if this will help you:
For the same purpose of you are looking for, I have collected different toggle switches that I found in my gauge list.
They have the IDENT nr. of the window that they change.
You can check if you have some of them and try with it.

gauge48=MB_TOGGLE_33,  799,631,57,57
gauge49=MB_TOGGLE_32,  731,612,57,57
gauge50=MB_TOGGLE_31,  665,648,57,57
gauge51=MB_TOGGLE_30,  602,648,57,57
gauge52=learrdb.tgglpnl26,  353,630,40,36
gauge53=learrdb.tgglpnl24,  393,630,40,36
gauge54=learrdb.tgglpnl23,  433,630,40,36
gauge55=learrdb.tgglpnl22,  473,630,40,36
gauge56=learrdb.tgglpnl21,  513,630,40,36
gauge57=learrdb.tgglpnl20,  553,630,40,36
gauge58=DFRG_TOGGLE_31,  664,579,57,56
gauge59=DF172_TOGGLE_GPS_33,  806,573,40,35
gauge60=DF172_TOGGLE_37,  931,606,57,56
gauge61=DF172_TOGGLE_36,  869,607,57,56
gauge62=DF172_TOGGLE_30,  601,579,57,56

Forget the gauge nr., and the size and position, this is only for the window where I have collected them.
I modify the FS9 panels with CfgEdit Freeware program, that worked since with FS2000.

Good luck.