Sign in to follow this  
Followers 0
PaulDG

Removing Dotted Border

4 posts in this topic

#1 ·  Posted (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 by PaulGX

Share this post


Link to post
Share on other sites



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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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. :P

Share this post


Link to post
Share on other sites

Actually its called working with what you have.... i wouldn't think of that one as a cheat

and you state

also means i cant select the checkbox without actually clicking on the box

isn't that what most people do anyway

and you could do that for as many GUI options as you wanted

then... for the final results

its does what you wanted

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0