• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 2D panels overlap

Messages
31
Hi,
I develop 2D panels in C++ for FS9.
There's a trouble with panels priority (or "z-order" ?).
I toggle several 2D panels, when needed, using:
Code:
    panel_window_toggle(ID_SOME_PANEL_ID);

Usually it's OK, but in some cases the newly opened panel comes behind the another one. Something like in the attached screenshot.

How can I solve this and set the correct layer priority?
 

Attachments

  • 2dPanels.jpg
    2dPanels.jpg
    99.1 KB · Views: 538
Last edited:
Read the SDK? :D

Set the zorder entry for the GPS popup in the panel.cfg file to some higher number, such as:

//--------------------------------------------------------
[Window02]
Background_color=0,0,0
size_mm=456,378
window_size_ratio=1.000
visible=0
ident=GPS_PANEL
window_size= 0.360, 0.398
window_pos= 0.640, 0.600
zorder=5

gauge00=fs9gps!gps_500, 0,0,456,378
 
Last edited:
Thank you, n4gix!

Read the SDK? :D
Yep.

Set the zorder entry for the GPS popup in the panel.cfg file to some higher number,
I can find no information about such a parameter in SDK.
Looked through "FS2004SDK\Panels_SDK\doc\Panels SDK.doc", especially in chapter named "The Panel Configuration File".
Are you sure it exists in FS9?

Anyway, I'll try it too.
 
As I recall, now that I think about it some more, it was an "undocumented feature" of FS9...

It does work though, as I've been using it for years... :D
 
Back
Top