Sign in to follow this  
Followers 0
vickerps

$WS_EX_TOPMOST

6 posts in this topic

#1 ·  Posted (edited)

Just created a script that would benefit using the $WS_EX_TOPMOST to keep the GUI window on top.

however it still stays on top when a msgbox is used. I would of liked to have the msgbox on top or at lease to be able to tell the msgbox to move co ordinates.

has anyone used this yet and have a solution. I now strictly speaking there isn't a problem but it make the program look like it frozen because you can't see the msgbox

Edited by vickerps

Share this post


Link to post
Share on other sites



Just created a script that would benefit using the $WS_EX_TOPMOST to keep the GUI window on top.

however it still stays on top when a msgbox is used. I would of liked to have the msgbox on top or at lease to be able to tell the msgbox to move co ordinates.

has anyone used this yet and have a solution. I now strictly speaking there isn't a problem but it make the program look like it frozen because you can't see the msgbox

<{POST_SNAPBACK}>

I ran into the same problem with a program I wrote. My solution was to either hide or minimize the "main" window right before your message box comes, then restore it afterwards.

Share this post


Link to post
Share on other sites

I always just made the msgbox topmost as well. Now inputbox, that's a problem. It doesn't get an topmost attribute.

Share this post


Link to post
Share on other sites

I always just made the msgbox topmost as well. Now inputbox, that's a problem. It doesn't get an topmost attribute.

<{POST_SNAPBACK}>

I haven't tried it, but I'm guessing that WinSetOnTop() would work for that?

Share this post


Link to post
Share on other sites

the WinSetOnTop() works. thanks

However i cannot get it to work with a msgbox. I solved the problem with setting the gui form ontop to either 1 or 0 when necessary.

Can you use WinSetOnTop() with a msgbox?

Share this post


Link to post
Share on other sites

No.

It doesn't work with MsgBox as the script stops executing as long as a MsgBox

is shown. Doesn't it say anything about this in the docs ? If not, it should be.

At least it doesn't say anything in the online docs..

Anyway, Saunders were refering to the the flag-value 262144.

Try using that.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0