91
Programming / Re: how to stay a window on top
« on: May 09, 2020, 06:33:57 pm »
Thank you Doodle for your post. But I wonder why a Dialog Window has the behaviour I would like to have. Dialog Windows always stay on top above the main program (standard) window. I thaught that all windows are internally the same for the operating system and only with different properties. So it seems that you cannot write a Dialog Window call with WinCreateWindow or WinCreateStandardWindow.
In WDsibyl, I have got a list of existing forms of an application in the main form. A form which changes the ZOrder to TOP should send a message to the main form of the application and the main form should send a message back to all other forms. If the other form has got the "StayOnTop" property set, it should get the ZOrder TOP again. This conecpt works without timer messages. I will report if I managed it.
Do you have an idea how to turn off the system wide WS_TOPMOST flag after it has been set?
In WDsibyl, I have got a list of existing forms of an application in the main form. A form which changes the ZOrder to TOP should send a message to the main form of the application and the main form should send a message back to all other forms. If the other form has got the "StayOnTop" property set, it should get the ZOrder TOP again. This conecpt works without timer messages. I will report if I managed it.
Do you have an idea how to turn off the system wide WS_TOPMOST flag after it has been set?