darcaro Posted June 27, 2007 Share Posted June 27, 2007 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! #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 Link to comment Share on other sites More sharing options...
/dev/null Posted June 27, 2007 Share Posted June 27, 2007 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 * Link to comment Share on other sites More sharing options...
smashly Posted June 27, 2007 Share Posted June 27, 2007 #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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now