September 30, 200916 yr Hi folks,Is there a way to reset the positions of all (or individual) panels to their panel.cfg positions without reloading the aircraft? Ideally I would have this function coded as a clickspot somewhere on the panel...Thanks,Geoff
September 30, 200916 yr Commercial Member If you're using C, the following works:-KEY_CONTROL_RELOAD_USER_AIRCRAFTThe downside of this command is that if you have modified the size of the forward external window, it will also be reset to the default height/width.-Dai
September 30, 200916 yr Author If you're using C, the following works:-KEY_CONTROL_RELOAD_USER_AIRCRAFTThe downside of this command is that if you have modified the size of the forward external window, it will also be reset to the default height/width.-DaiThanks for the reply. Actually using XML... and doing so at the most basic level, I'm a proper newbie at this! So is there an XML equivalent?Actually, does that really only reset the panel positions without interfering withj anything else? I would have thought that this command (based on it's name) would have done more than just reposition the panels - almost an equivalent of "ALT, A, A, Enter" through the FS9 menus - I definately do not want the command to reset the gauges in any way!!Geoff
October 1, 200916 yr Commercial Member Hi GeoffI know nothing about the XML side whatsoever :(. And yes, I do believe the command resets everything.-Dai
October 4, 200916 yr Hi folks,Is there a way to reset the positions of all (or individual) panels to their panel.cfg positions without reloading the aircraft? Ideally I would have this function coded as a clickspot somewhere on the panel...Thanks,GeoffYou can go into settings and set the reload aircraft key combination. I believe I have it as CTRL-F11. You also can make an xml panel gauge to reload the aircraft by calling up the reload aircraft code. Regards,Bob.
October 6, 200916 yr Author You can go into settings and set the reload aircraft key combination. I believe I have it as CTRL-F11. You also can make an xml panel gauge to reload the aircraft by calling up the reload aircraft code. Regards,Bob.I probably didn't make it clear before - resetting the aircraft is NOT what I want to achieve. I have a panel which is made up of overlayed sub-panels in order to achieve custom lighting etc. The problem is that sometimes a but of stray mouse click+movement drags or resizes part of a sub-panel which then is out of allignment and therefor rather ugly. Obviously I can just try to drag it back but I was wondering if I could build in a "re-allign" clickspot to position the panels on the screen to their set positions from the panel.cfg file (or just positions coded into the gauge). Resetting the aircraft will reset gauges within the panel so is of no use to me!Cheers,Geoff
October 6, 200916 yr Moderator Why not simply lock the popup panels to prevent them moving to begin with?child_3d=1This indicates that the window is part of the 3D scene, and cannot be undocked or dragged around the screen. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
October 6, 200916 yr I probably didn't make it clear before - resetting the aircraft is NOT what I want to achieve. I have a panel which is made up of overlayed sub-panels in order to achieve custom lighting etc. The problem is that sometimes a but of stray mouse click+movement drags or resizes part of a sub-panel which then is out of allignment and therefor rather ugly. Obviously I can just try to drag it back but I was wondering if I could build in a "re-allign" clickspot to position the panels on the screen to their set positions from the panel.cfg file (or just positions coded into the gauge). Resetting the aircraft will reset gauges within the panel so is of no use to me!Cheers,GeoffOK. I understand. Regards, Bob.
October 6, 200916 yr Author Why not simply lock the popup panels to prevent them moving to begin with?child_3d=1This indicates that the window is part of the 3D scene, and cannot be undocked or dragged around the screen....well, erm... because I didn't know that is what that command was for - I thought it was a VC thing.Thanks very much for the help - I'll try it out :)Geoff
October 6, 200916 yr Author Why not simply lock the popup panels to prevent them moving to begin with?child_3d=1This indicates that the window is part of the 3D scene, and cannot be undocked or dragged around the screen.There is a problem with this command. If I add the line "child_3d=1" to any of my [windowXX] sections that panel then does not appear (or worse, the sim crashes to desktop)...A typical entry from my panel.cfg is the following:[Window15]Background_color=0,0,0size_mm=1152,864window_size_ratio=1.000 visible=0ident=202zorder=8update_rate=20window_size= 0.50, 1.000window_pos= 0.237, 0.00child_3d=1 <<-------------- without this, the panel is showngauge00=GC_BAe_Stuff!GC_BAe_Ovhd_Overlay, 0,0,1152,864Have I done something incorrectly?Geoff
October 7, 200916 yr Moderator Oh. It's probably a case of the zorder value conflicting with the child_3d entry. Oops! :( Ah well, it was worth a try! Too bad it won't work... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment