Sign in to follow this  
Followers 0
darcaro

gui window forced on top?

3 posts in this topic

I have a simple gui that I'm trying to implement with a (non gui) application. It works perfectly, except it's very easy for the user to click somewhere other than the gui and make it minimize. I'm not as concerned with the user being able to move the window as I am making sure they click one of the buttons (or close it) I messed around with GUISetState, to no avail. The example below will run, but as soon as I click somewhere other than the gui, it gets minimized to the task bar! :rolleyes:

#include <GUIConstants.au3>

GUICreate ("My GUI") ; start the definition

GUISetState () ; will display an empty dialog box

; Run the GUI until the dialog is closed

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Wend

Share this post


Link to post
Share on other sites



based on your topic title, try this:

GUICreate("My GUI",Default,Default,Default,Default,Default,$WS_EX_TOPMOST)


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

GUICreate ("My GUI", 200, 200, -1, -1, $WS_CAPTION + $WS_SYSMENU, $WS_EX_TOPMOST) ; start the definition

GUISetState () ; will display an empty dialog box

; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then Exit
Wend

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