UQOII Posted March 31, 2008 Posted March 31, 2008 I want a GUI that is Topmost, not visable in the menu and no Borders. The 2nd gui in the test script is perfect but it have's a border around the gui and that is what i don't want. if you test the script below you know what i mean. #include <GUIConstants.au3> $gui = GUICreate("This is what i want~~~~~~",220,70,100,100,BitOR ($WS_POPUP,$WS_EX_MDICHILD)) GUICtrlCreateLabel("This is what i want."&@CRLF&"But i want this gui also:"&@CRLF&"- Topmost"&@CRLF&"not visable in the menu balk under",10,10) $exit = GUICtrlCreateButton("X",200,0,20,20) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $exit Then ExitLoop Wend GUICreate("This is what i have**********",220,70,350,100,$WS_POPUP,$WS_EX_MDICHILD&$WS_EX_TOPMOST) GUICtrlCreateLabel("This is what i have."&@CRLF&""&@CRLF&"But now i have a ugly border on the GUI"&@CRLF&"It is Topmost and is not visable in the menu",10,10) $exit = GUICtrlCreateButton("X",200,0,20,20) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $exit Then ExitLoop Wend [center]uqoii.nl[/center]
covaks Posted March 31, 2008 Posted March 31, 2008 I feel like I'm missing something. Your combining window style with extended window style in the first example for some reason. And then your trying to combine extended window styles with the & sign in the next example... ? Is this supposed to be for a child window? Or are you just putting $WS_EX_MDICHILD in there for some random reason? Does this work? #include <GUIConstants.au3> GUICreate("This is what i have**********",220,70,350,100,$WS_POPUP,$WS_EX_TOPMOST) GUICtrlCreateLabel("This is what i have."&@CRLF&""&@CRLF&"But now i have a ugly border on the GUI"&@CRLF&"It is Topmost and is not visable in the menu",10,10) $exit = GUICtrlCreateButton("X",200,0,20,20) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $exit Then ExitLoop Wend
UQOII Posted March 31, 2008 Author Posted March 31, 2008 I feel like I'm missing something. Your combining window style with extended window style in the first example for some reason. And then your trying to combine extended window styles with the & sign in the next example... ? Is this supposed to be for a child window? Or are you just putting $WS_EX_MDICHILD in there for some random reason? Does this work? #include <GUIConstants.au3> GUICreate("This is what i have**********",220,70,350,100,$WS_POPUP,$WS_EX_TOPMOST) GUICtrlCreateLabel("This is what i have."&@CRLF&""&@CRLF&"But now i have a ugly border on the GUI"&@CRLF&"It is Topmost and is not visable in the menu",10,10) $exit = GUICtrlCreateButton("X",200,0,20,20) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $exit Then ExitLoop WendYour script is good but you can still see the gui in the taskbar..... [center]uqoii.nl[/center]
taz742 Posted March 31, 2008 Posted March 31, 2008 (edited) #include <GUIConstants.au3> #NoTrayIcon ;Only if you don't want to see it GUICreate("",220,70,100,200,$WS_POPUP,BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW)) GUICtrlCreateLabel("This is what you want"&@CRLF&""&@CRLF&"It is Topmost and is not visable in the taskbar"&@CRLF&";-)",10,10) $exit = GUICtrlCreateButton("X",200,0,20,20) GUISetState (@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $exit Then ExitLoop Wend Have fun Edited March 31, 2008 by taz742
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