Sign in to follow this  
Followers 0
van Dusen

TriState CheckBoxes: Can't get them work

3 posts in this topic

Hello,

I'am new to this forum and I like to introduce myself with a stupid question :"> :

How can I get CheckBox controls with TriState style work? Of course I searched the forum, but I didn't find a solution yet.

When I run this sample script...

#include <GUIConstants.au3>

$frmDia = GUICreate("TriState CheckBoxes", 270, 180, -1, -1)
$chkStandard = GUICtrlCreateCheckbox("Standard CheckBox", 10, 10, 250, 30)
$chkTriState1 = GUICtrlCreateCheckbox("$BS_3STATE", 10, 50, 250, 30, $BS_3STATE)
GUICtrlSetState($chkTriState1, $GUI_INDETERMINATE)
$chkTriState2 = GUICtrlCreateCheckbox("$BS_AUTO3STATE", 10, 90, 250, 30, $BS_AUTO3STATE)
$chkTriState3 = GUICtrlCreateCheckbox("BitOR($WS_TABSTOP, $BS_AUTO3STATE)", 10, 130, 250, 30, BitOR($WS_TABSTOP, $BS_AUTO3STATE))

GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;*** NOP
    EndSelect
WEnd

...I get this result:

Posted Image

I'm using AutoIT V3.1.1.0 on WinXP HE SP1.

Thanks in advance for any help! :o

Share this post


Link to post
Share on other sites



I get the check boxes with XP PRO SP2 - Using Beta. http://www.autoitscript.com/autoit3/files/beta/autoit/

Other than that, I have no clue how your getting Groups.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Seems to be a bug in V3.1.1.0. I've installed V3.1.1.111.beta now, that does the trick. Thanks SmOke_N for pointing me out to the beta version (I didn't dare to use any beta version earlier) :o !

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