July 2, 200421 yr Hello.I'm hoping someone can help me out here.How do you control the layer order of windows in a panel? Right now I have an overhead pop-up window that is appearing behind the main panel when it is opened. How can I get that to appear in front?Thanks!!!
July 2, 200421 yr Not sure, but I fixed a similar problem by changing a setting in the panel.cfg from visible=1 to visible=0 (or was it vice versa?).Worth looking into. Just remember the original settings or make a backup copy before you start.
July 3, 200421 yr I think this has to to with the window ident value. The lower values are drawn first. The main panel usually has Ident=0. Graeme Butler
July 3, 200421 yr To my knowledge, basically the higher the number, the higher the window will appear in the stack. That might be only part of the argument, however, as I think it also has to do with what ORDER you open them in any time you load that particular panel.Some designers hard code these preferences into the icon gauges.The visible=1 line that Charlie refers to merely dictates what windows are open by default when you load a panel. Some designers like the panel to load with everything open whereas the usual situation is just to have the main view loading that way.Mark "Dark Moment" Beaumonthttp://www.swiremariners.com/newlogo.jpg _________________________ Mark "Dark Moment" Beaumont VP Fleet, DC-3 Airways Team Member, MAAM-SIM
July 3, 200421 yr Hi Mark, You are right in saying the visible= statement is for setting which windows are open by default, however I had a problem with a window I had added to a panel that was off by default and when opened was covering my throttle panel's levers. By setting the new window to be open by default it no longer covered the throttle levers. The opposite to what I or probably anyone else would expect to happen. Just thought I should make clear the reason I suggested this in my previous message.
July 3, 200421 yr Author Well, it definitely has something to do with the ident tag. When changing this tag it seems to appear over the main panel like it should. However, after changing this tag, the overhead no longer appears when the icon button for it is clicked. The only way to get it to show is by going through the menu.Here is panel.cfg file...[Window Titles]Window00=Main PanelWindow01=YokeWindow02=Overhead PanelWindow03=Navigation PanelWindow04=GPSFixed Window30=FORWARD_LEFTFixed Window31=LEFTFixed Window32=REAR_LEFTFixed Window33=REARFixed Window34=REAR_RIGHTFixed Window35=RIGHTFixed Window36=FORWARD_RIGHT[VIEWS]VIEW_FORWARD_WINDOWS=MAIN PANEL,30,OVERHEAD_PANEL,COMPASS_PANEL,GPS_PANELVIEW_FORWARD_DIR=4.0, 0.0, 0.0VIEW_FORWARD_RIGHT_WINDOWS=36VIEW_RIGHT_WINDOWS=35VIEW_REAR_RIGHT_WINDOWS=34VIEW_REAR_WINDOWS=33VIEW_REAR_LEFT_WINDOWS=32VIEW_LEFT_WINDOWS=31VIEW_FORWARD_LEFT_WINDOWS=30//--------------------------------------------------------[Window00]file=Grum-main2q.bmp size_mm=800window_size_ratio=1.000 position=7visible=1ident=MAIN PANELgauge00=MS.Dual.Map, 523,81,70,67gauge01=MS.Dual.Tach, 595,81,70,67gauge02=SimIcons!Overhead Icon, 125,572,21,22gauge03=SimIcons!Compass Icon, 156,572,21,22gauge04=SimIcons!Kneeboard Icon, 559,338,21,22gauge05=SimIcons!GPS Icon, 540,338,21,22gauge06=bendix_king_radio.xpndr, 425,555,170,44gauge07=magnetic_compass!Magnetic-Compass, 574,241,60,59gauge08=cessna208!Attitude, 409,368,94,89gauge09=Bvr_Turn_Coordinator, 223,460,90,89gauge10=Bvr_Altimeter, 512,368,90,89gauge11=Bvr_DG, 414,462,83,92gauge12=Bvr_Climb, 511,460,90,91gauge13=bendix_king_radio!Bendix-King Radio Nav-Comm 1, 614,393,156,59gauge14=bendix_king_radio!Bendix-King Radio Nav-Comm 2, 614, 449 ,156,59gauge15=bendix_king_radio!Bendix-King Radio ADF, 614,353,156,42gauge16=bendix_king_radio!Bendix-King Radio Audio, 614,505,156,31gauge17=extra-300.airspeed, 312,370,83,82gauge18=cessna!Master_Alt_Bat, 645,544,43,47gauge19=cessna!Avionics Switch, 699,544,37,46gauge20=FB_Stall_Warn, 679,331,20,19gauge21=cessna182rg!Switches, 283,555,132,42gauge22=mooney_bravo!Clock, 246,418,48,28gauge23=SimIcons!ATC Icon, 187,572,21,22gauge24=BCK.Goose_Throttle, 406,-7,91,213gauge25=Grum-mix, 159,499,50,59//--------------------------------------------------------[Window01]file=Grum-yoke.bmp size_mm=800window_size_ratio=1.000 position=7visible=1ident=30//--------------------------------------------------------[Window02]file=Grum-overhead1.bmp size_mm=400window_size_ratio=1.000 position=2visible=0ident=OVERHEAD_PANELgauge00=C46_fuel_sw_aux, 139,300,90,89gauge01=C46_fuelleft, 139,210,90,89gauge02=C46_fuelright, 235,210,90,89gauge03=Bvr_Amps, 152,20,89,90gauge04=Brab-oil, 236,118,90,89gauge05=Brab-oil-L, 140,118,90,89gauge06=cessna208!Gears, 259,6,87,110gauge07=kingair!Left Ignition, 246,347,23,41gauge08=kingair!Right Ignition, 269,347,38,41gauge09=kingair!AntiIce_Switch, 246,306,41,34gauge10=BCK.Goose_Prop_Pitch, 45,13,50,100gauge11=BCK.Goose_Carb_Heat_v3, 99,13,50,100gauge12=cessna208!Flaps, 84,242,35,126gauge13=cessna!Pitch_Trim, 87,177,28,46gauge14=cessna!Rudder_Trim, 79, 137 ,46,29//--------------------------------------------------------[Window03]file=Grum-nav1.bmp size_mm=400window_size_ratio=1.000 position=1visible=0ident=COMPASS_PANELgauge00=bendix_king_radio.ap, 119,179,170,42gauge01=bendix_king.hsi, 287,17,83,79gauge02=bendix_king.vor1, 117,17,83,82gauge03=bendix_king.vor2, 202,16,83,82gauge04=bendix_king_radio.dme, 118,138,170,37gauge05=cessna208!Nav-GPS-Switch, 148,108,20,21gauge06=kingair!OMI Lights, 230,112,33,12gauge07=cessna208!ADF, 32,19,83,82//--------------------------------------------------------[Window04]size_mm=456,378window_size=0.5position=8BACKGROUND_COLOR=0,0,0VISIBLE=0ident=GPS_PANELgauge00=fs9gps!gps_500, 0,0//--------------------------------------------------------[Fixed Window30]file=G21L_front.BMP position=7visible=0ident=30render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000//--------------------------------------------------------[Fixed Window31]file=G21Left n.BMP position=7visible=0ident=31render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000//--------------------------------------------------------[Fixed Window32]file=G21 LR n.BMP position=7visible=0ident=32render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000//--------------------------------------------------------[Fixed Window33]file=Rear.bmp position=7visible=0ident=33render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000//--------------------------------------------------------[Fixed Window34]file=G21 RR n.BMP position=7visible=0ident=34render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000//--------------------------------------------------------[Fixed Window35]file=G21Right n.BMP position=7visible=0ident=35render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000//--------------------------------------------------------[Fixed Window36]file=G21R_front.BMP position=7visible=0ident=36render_3d_window=1window_size= 1.000, 1.000window_pos= 0.000, 0.000Day=255,255,255Night=0,0,0Luminous=190,140,90[Default View]X=0Y=0SIZE_X=8191SIZE_Y=6143
July 3, 200421 yr You are missing the underscore character between overhead and panel in the header section. The ident= must be exactly as the window list at the head of panel.cfg. I always use copy/paste to insure this.OVERHEAD_PANELshould be at both the panel.cfg window list at the head of the file and after ident = in that particular window section.
July 3, 200421 yr ident=MAIN PANEL should beident=MAIN_PANELAlso, under the Windows/Fixed Windows column, you should probably also change the "Main Panel" line in the following line to match up with the ident number.... VIEW_FORWARD_WINDOWS=MAIN_PANEL,30,OVERHEAD_PANEL,COMPASS_PANEL,GPS_PANELBTW, Window00=Main Panel is fine. It's the other segments that need the words broken up to FS specs.
July 3, 200421 yr Author Wow! Thanks for the help!I know very little about building the .cfg files. I was just trying to get the overhead for this Goose panel to display properly (that someone else had made).Oddly enough, the overhead sill opened when clicking the icon even without the "_" between OVERHEAD and PANEL. Why I don't know. From what you both said it shoudn't have. But, it was the space between MAIN and PANEL in all locations that was causing the overhead to display behind the main window.I don't know if I wrote that well enough for anybody to understand, but, thanks very much for the help!!!
Create an account or sign in to comment