Jump to content

tickbox


Recommended Posts

what am i missing here?

$all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

If $msg = BitOR($all, $GUI_CHECKED) Then MsgBox(262208, "checked!", "you checked it!.")

Endselect

Wend

Link to comment
Share on other sites

No idea why the above doesnt work but this seems to anyhow

$all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

Case $Msg = $Submit

$x = GUICtrlRead($all)

If $x = 1 Then

msgbox (0,"Yep","Yep")

EndIf

EndSelect

Wend

Link to comment
Share on other sites

what am i missing here?

$all = GUICtrlCreateCheckBox ("Use the same username & password for all shares", 80, 110)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

If $msg = BitOR($all, $GUI_CHECKED) Then MsgBox(262208, "checked!", "you checked it!.")

Endselect

Wend

#include <GuiConstants.au3>
GUICreate("test")
$all = GUICtrlCreateCheckbox("Use the same username & password for all shares", 80, 110)

GUISetState()
While 1
    
    $msg = GUIGetMsg()
    
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $msg = $all
            If BitAND(GUICtrlRead($all), $GUI_CHECKED) Then MsgBox(262208, "checked!", "you checked it!.")
    EndSelect
    
WEnd
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...