This project is read-only.

When emulator form is activated it should be "TopMost"


When the main emulator form(ZXMak2) is activated(has focus) and debugger is opened then the emulator form is not top most form on the screen(it stays behind the debugger window).

I cannot resolve it, so please find a solution. I do not want to debugger form is always TopMost because I have to move the debugger window so that the emulator window is completely visible.


zxmak wrote Jun 5, 2015 at 11:10 AM

It is designed feature. All child windows always displayed in front of the main window.
It is designed to avoid bugs related to focus. So, it helps to avoid bug when some focused window is displayed behind the main window and the user is unable to do something, because he cannot see a focused window and cannot close it.

TopMost is bad behavior, because there is possible issue when two windows request TopMost simultaneously. Which one should be TopMost? So TopMost == bug.

See this article for example:

zxmak wrote Jun 5, 2015 at 11:16 AM

you can close debugger window. It's state will be stored, so when you open it again it will be the same...