PUI: Difference between revisions

Jump to navigation Jump to search
243 bytes added ,  3 January 2023
m
→‎Popups: https://sourceforge.net/p/flightgear/mailman/message/37756296/
m (→‎Popups: https://sourceforge.net/p/flightgear/mailman/message/37756296/)
Line 101: Line 101:


What we probably need is a new Canvas window type beside Dialog and Window, for pop-up menus (probably quite similar to Tooltip) that has a high Z-level. The complication is we can have more than one, if we allow sub-menus (which is a commonly request feature for the main menubar) : otherwise we could probably get a way with a single 'menu popup window’ in a fixed Z-layer, but sub-menus imply multiple menus can be open at once.<ref>https://sourceforge.net/p/flightgear/mailman/message/37756291/</ref>
What we probably need is a new Canvas window type beside Dialog and Window, for pop-up menus (probably quite similar to Tooltip) that has a high Z-level. The complication is we can have more than one, if we allow sub-menus (which is a commonly request feature for the main menubar) : otherwise we could probably get a way with a single 'menu popup window’ in a fixed Z-layer, but sub-menus imply multiple menus can be open at once.<ref>https://sourceforge.net/p/flightgear/mailman/message/37756291/</ref>
The stubs for PopupMenu / Menu are already pushed, but the don’t have the style implementation, since James got stuck deciding how to handle the window for the menus <ref>https://sourceforge.net/p/flightgear/mailman/message/37756296/</ref>


=== Styling ===
=== Styling ===

Navigation menu