ReAction window.class [ SOLVED ]

5 posts / 0 new
Last post
Massi
Massi's picture
Offline
Last seen: 4 years 6 months ago
Joined: 2012-03-28 17:16
ReAction window.class [ SOLVED ]

Hello.

In my Workbench application I want the program window to always stay in front of all others, option driven by a popupmenu.

I use ReAction GUI engine.

Any idea how to do this?

Thanks, regards

tbreeden
tbreeden's picture
Offline
Last seen: 6 years 8 months ago
Joined: 2010-12-09 03:10
Try tag WA_StayTop. From the

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

Massi
Massi's picture
Offline
Last seen: 4 years 6 months ago
Joined: 2012-03-28 17:16
Thanks, I saw that. In my

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)?

trixie
trixie's picture
Offline
Last seen: 6 months 3 weeks ago
Joined: 2011-02-03 13:58
Re: ReAction window.class [ SOLVED ]

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

Massi
Massi's picture
Offline
Last seen: 4 years 6 months ago
Joined: 2012-03-28 17:16
Now solved! Thanks to all

Now solved!
Thanks to all contributions.

Log in or register to post comments