PaulDG Posted November 30, 2005 Share Posted November 30, 2005 (edited) Using the script below i get a dotted line around the checkbox when i select it, without the $GUI_Window1 statement the dotted line is not there when the script is compiled. Can anyone tell me how to do this so that the dotted line is not there when the $GUI_Window1 statement is included. You have to compile the script to see the effect, the dotted line is allways there when its run from the editor. To simlyfy the example i have removed the tabs that normally go in the $GUI_Window1 section, but the problem is there with or without them. Thanks for any help. #include <GuiConstants.au3> Opt("GUIOnEventMode", 1) ;Gui Window Start -> $Main = GuiCreate("heading", 400, 300,200,150) GUISetOnEvent($GUI_EVENT_CLOSE, "doexit") $Title = GuiCtrlCreateLabel("Title", 0, 0, 400, 25, $SS_CENTER) GUISetState(@SW_SHOW) $GUI_Window1 = GUICreate("",380,260,7,25,$WS_CHILD, -1 , $Main) $ProgramOnExit = GUICtrlCreateCheckbox("Select Something", 10, 115, 210, 20) GUISetState(@SW_SHOW) ;Gui Window End -> While 1 Sleep(10) Wend Func DoExit() exit EndFunc Edited November 30, 2005 by PaulGX Link to comment Share on other sites More sharing options...
Valuater Posted November 30, 2005 Share Posted November 30, 2005 like this #include <GuiConstants.au3> Opt("GUIOnEventMode", 1) ;Gui Window Start -> $Main = GuiCreate("heading", 400, 300,200,150) GUISetOnEvent($GUI_EVENT_CLOSE, "doexit") $Title = GuiCtrlCreateLabel("Title", 0, 0, 400, 25, $SS_CENTER) GUISetState(@SW_SHOW) $GUI_Window1 = GUICreate("",380,260,7,25,$WS_CHILD, -1 , $Main) $ProgramOnExit = GUICtrlCreateCheckbox("", 10, 115, 10, 20) GUICtrlCreateLabel("Select Something", 25, 117, 100, 20) GUISetState(@SW_SHOW) ;Gui Window End -> While 1 Sleep(10) Wend Func DoExit() exit EndFunc 8) Link to comment Share on other sites More sharing options...
PaulDG Posted November 30, 2005 Author Share Posted November 30, 2005 Thanks Valuater, But that isnt quite the soloution i was looking for, its more like a cheat or workaround and also means i cant select the checkbox without actually clicking on the box. Plus it dosnt help with the 20 or so other Gui options not shown in this example. But thanks for the suggestion. Link to comment Share on other sites More sharing options...
Valuater Posted December 1, 2005 Share Posted December 1, 2005 Actually its called working with what you have.... i wouldn't think of that one as a cheatand you statealso means i cant select the checkbox without actually clicking on the boxisn't that what most people do anywayand you could do that for as many GUI options as you wantedthen... for the final resultsits does what you wanted8) 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