KXM Posted October 27, 2005 Share Posted October 27, 2005 I know this is a simple one, but I can't for the life of me figure it out... Which border style is the one with nothing but a single x(close) like a message box? Link to comment Share on other sites More sharing options...
BigDod Posted October 28, 2005 Share Posted October 28, 2005 (edited) I know this is a simple one, but I can't for the life of me figure it out...Which border style is the one with nothing but a single x(close) like a message box?I am not sure about what border style you should use, but you can always makeup your own GUI.#include <GuiConstants.au3> GuiCreate("My message box", 400, 78,(@DesktopWidth-400)/2, (@DesktopHeight-78)/2, $WS_POPUP + $WS_DLGFRAME) $Button = GuiCtrlCreateButton("X", 370, 0, 30, 30) GUICtrlSetFont($Button, 24) $Label = GuiCtrlCreateLabel("", 0, 0, 370, 30 ) GUICtrlSetBkColor(-1,0x8080ff) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $Button ExitLoop EndSelect WEnd Edited October 28, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Valuater Posted October 28, 2005 Share Posted October 28, 2005 I am not sure about what border style you should use, but you can always makeup your own GUI.#include <GuiConstants.au3> GuiCreate("My message box", 400, 78,(@DesktopWidth-400)/2, (@DesktopHeight-78)/2, $WS_POPUP + $WS_DLGFRAME) $Button = GuiCtrlCreateButton("X", 370, 0, 30, 30) GUICtrlSetFont($Button, 24) $Label = GuiCtrlCreateLabel("", 0, 0, 370, 30 ) GUICtrlSetBkColor(-1,0x8080ff) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $Button ExitLoop EndSelect WEndoooohhhh.... showing scripts now ... are webut it works!!!!i tried to find the correct coding.. i was sure it was an option in the coding... but i couldn't find itso your idea may actually be the best way8) Link to comment Share on other sites More sharing options...
lookfar Posted October 28, 2005 Share Posted October 28, 2005 i tried to find the correct coding.. i was sure it was an option in the coding... but i couldn't find itI believe that is...#include <GUIConstants.au3> ;Generated with Form Designer preview $Form1 = GUICreate("Form1", 414, 306, 189, 116, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_CLIPCHILDREN,$WS_BORDER,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd Exit Get the latest version of AutoEd and Koda FormDesigner here Link to comment Share on other sites More sharing options...
BigDod Posted October 28, 2005 Share Posted October 28, 2005 I believe that is...#include <GUIConstants.au3> ;Generated with Form Designer preview $Form1 = GUICreate("Form1", 414, 306, 189, 116, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_CLIPCHILDREN,$WS_BORDER,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case Else ;;;;;;; EndSelect WEnd ExitYou win, I submit, no contest Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Valuater Posted October 28, 2005 Share Posted October 28, 2005 (edited) I believe that is...Yepper.....that would be it.... i tried many styles and couldn't find the right combination..looks like you did this in your form designer8) Edited October 28, 2005 by Valuater Link to comment Share on other sites More sharing options...
BigDod Posted October 29, 2005 Share Posted October 29, 2005 (edited) I played around with it and found that only one style is needed #include <GUIConstants.au3> ;Generated with Form Designer preview $Form = GUICreate("This is a test !!!", 414, 306, 189, 116,$WS_SYSMENU) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Exit Edit - This is only cause I do not understand what BitOR does Edited October 29, 2005 by BigDod Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
KXM Posted November 2, 2005 Author Share Posted November 2, 2005 My bad it was: $WS_SIZEBOX thanks all the helpm though. 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