Jump to content
Sign in to follow this  
onestcoder

Always On Top

Recommended Posts

onestcoder

Can anyone lead me in the right direction?

I want my GUI when it opens to Always Stay On Top of all other applications???

is it the $WS_EX_TOPMOST

so would it be

GUICreate("My program", 274, 200, $WS_EX_TOPMOST)

Edited by onestcoder

Need a website: http://www.iconixmarketing.com

Share this post


Link to post
Share on other sites
seandisanti

Can anyone lead me in the right direction?

I want my GUI when it opens to Always Stay On Top of all other applications???

2 ways, you can use WinSetOnTop("Window",1) OR use the $WS_EX_TOPMOST extended style when creating your gui.

Share this post


Link to post
Share on other sites
jaenster

For a newbi as you i shall use the win @ Cameronsdad...


-jaenster

Share this post


Link to post
Share on other sites
seandisanti

Can anyone lead me in the right direction?

I want my GUI when it opens to Always Stay On Top of all other applications???

is it the $WS_EX_TOPMOST

so whould it be

GUICreate("My program", 274, 200, $WS_EX_TOPMOST)

actually the topmost is an extended style, so you have to have a value for all of the optional parameters before it, to set an extended style. -1 uses the default style so it would be:

$gui = GUICreate("My program", 274, 200,0,0, -1,$WS_EX_TOPMOST)

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  

×