antipole2/JavaScript_pi

Console windows do not stay on top of main frame

Closed this issue · 5 comments

When focus moves from console, consoles disappear behind canvas.
This happens when a file dialogue is opened or with a click on the canvas.
In the Parking test script, after the first dialogue, all parked consoles disappear behind the main frame.

wxSTAY_ON_TOP?

	`m_Console( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("JavaScript"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 844,2000 ), long style = wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSTAY_ON_TOP);`

Added in JavaScriptgui.h. Not yet tested.

Added through wxFormBuilder, which is more permanent than editing JavaScriptgui.h but not sufficient.
Have asked in Zulip #Master - 5.8.0

Under OCPN5.6.2/wx3.1.5 console windows move with the frame.
Under OCPN5.7/x3.2 the consoles are not attached to the frame - at lease under MacOS.

Proper behaviour under wx3.2.
Changes made to v2.0.2 to accommodate this.