mattfaust Posted December 18, 2007 Share Posted December 18, 2007 hello all, I have a scipt that creates a gui on the top of the screen. When it is shown i would like any open windows to be resized and any new window to appear below the GUI. I have tried the $WS_EX_Topmost flag but it still allow the windows to be hidden by my GUI. What am I missing? thanks Link to comment Share on other sites More sharing options...
DjDeep00 Posted December 18, 2007 Share Posted December 18, 2007 Please post some code for better assistance... Link to comment Share on other sites More sharing options...
mattfaust Posted December 18, 2007 Author Share Posted December 18, 2007 Please post some code for better assistance...#include <GUIConstants.au3> while 1 if @DesktopWidth = 768 Then ; Tablet Mode Detected if WinExists("My GUI") = 0 Then GUICreate("My GUI",768,300,0,0,$WS_BORDER,$WS_EX_TOPMOST ) ; will create a dialog box that when displayed is centered GUISetState (@SW_SHOW) ; will display an empty dialog box EndIf Endif ; Run the GUI until the dialog is closed if @DesktopWidth = 1024 Then GUIDelete("My GUI") EndIf ; If $msg = $GUI_EVENT_CLOSE Then ExitLoop sleep(5000) wend this is for a tablet pc, it has a 1' band across the top that does not accept input. I want to cover it with my GUI when in tablet mode 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