stev379 Posted April 21, 2005 Share Posted April 21, 2005 How can I hide the closing "X" (as well as minimize and maximize, restore) in the upper corner of the window in this script. expandcollapse popup#include <Constants.au3> #include <GUIConstants.au3> ;GUICreate(whlp) $Main = GUICreate("Attention NETWORK NAME users:", 390, 275) GUICtrlCreateLabel ( "Attention NETWORK NAME users:", 40, 15, 300, 33) GUICtrlSetBKColor(-1,0xcc343e) ;For color definitions check: http://www.houseof3d.com/pete/applets/tools/colors/ GUICtrlSetFont(-1, 20, 400, 4, "Arial Bold") GUICtrlCreateLabel("In a continuing effort to maintain stable and secure desktop" & @CRLF _ & "systems, the IT department at NETWORK NAME has installed" & @CRLF _ & "several patches." & @CRLF & @CRLF _ & "Please restart your computer at your earliest convenience." & @CRLF & @CRLF _ & "Thank You," & @CRLF _ & "NETWORK NAME Network Administration", 20, 70, 380, 140) GUICtrlSetFont(-1, 10, 400, "", "Arial") $btn_Rbt = GUICtrlCreateButton("Reboot now", 45, 215, 75, 25) GUICtrlSetTip(-1, "Did you save your open files?") GUICtrlCreateLabel ("Make sure to save any open files before rebooting.", 25, 245, 130, 100) $btn_RbtLTR = GUICtrlCreateButton("Reboot later", 250, 215, 75, 25) GUICtrlSetTip(-1, "Click here to reboot later.") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $btn_RbtLTR Exitloop Case $msg = $btn_Rbt $Rbt_NOW = Msgbox(19, "Rebooting", " About to reboot computer, did you save your work?" & @CRLF _ & " Click OK to reboot now.") If $Rbt_NOW = 2 Then Exit ElseIf $Rbt_NOW = 6 Then Shutdown (2) EndIf EndSelect WEnd Thanks for any help or suggstions!! Link to comment Share on other sites More sharing options...
sandyd Posted April 21, 2005 Share Posted April 21, 2005 try replacing: $Main = GUICreate("Attention NETWORK NAME users:", 390, 275) with $Main = GUICreate("Attention NETWORK NAME users:", 390, 275,-1,-1,BitOR($WS_POPUP, $WS_SYSMENU)) ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
Developers Jos Posted April 21, 2005 Developers Share Posted April 21, 2005 How can I hide the closing "X" (as well as minimize and maximize, restore) in the upper corner of the window in this script.Thanks for any help or suggstions!!<{POST_SNAPBACK}>- OR -$Main = GUICreate("Attention NETWORK NAME users:", 390, 275,-1,-1,$WS_DLGFRAME) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
stev379 Posted April 21, 2005 Author Share Posted April 21, 2005 Thanks to both for such quick replies!! Works great! 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