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