Thanks, I saw that.
In my case I have a window already opened and on user action (say popupmenu) I want the window to stay in front of all others.
Do I have to close the window (WM_CLOSE), call SetAttrs() and reopen the window again (WM_OPEN)?
I have a window already opened and on user action (say popupmenu) I want the window to stay in front of all others. Do I have to close the window (WM_CLOSE), call SetAttrs() and reopen the window again (WM_OPEN)?
Yes. Unfortunately, changing this attribute does not work without re-opening the window.
Try tag WA_StayTop.
From the AutoDocs for Window Class:
----------------------------------------------------------------------
The following standard Intuition window tags are supported.
You may set these while the window is NOT open, at NewObject()
time or SetAttrs() - between WM_CLOSE and WM_OPEN for example:
...
WA_StayTop
Thanks, I saw that.
In my case I have a window already opened and on user action (say popupmenu) I want the window to stay in front of all others.
Do I have to close the window (WM_CLOSE), call SetAttrs() and reopen the window again (WM_OPEN)?
Yes. Unfortunately, changing this attribute does not work without re-opening the window.
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
Now solved!
Thanks to all contributions.