I looked at the Window.new() ctor and cannot seem to find anything that would allow me to easily turn an existing Canvas into a "Window" ?
The rationale being that we're in the process of turning our map-canvas.xml dialog into a generic, and reusable, widget for $FG_ROOT/Nasal/canvas/gui/widgets - the widget is using the new Layout engine to align other widgets (checkboxes & buttons for now). And one of our goals is to also modernize airports.xml (the airport selection dialog) such that it can use MapStructure. The simplest way would be to simply turn the PUI CanvasWidget into a Canvas.Window() so that layouting etc works as expected, and so that we can simply show the new scripted MapWidget there.
I know that PUI is going to be phased out sooner or later - but that will undoubtedly still take a while, and porting the whole dialog will be more work than just embedding an existing widget
Any ideas/suggestions ?