Jump to content

TriState CheckBoxes: Can't get them work


Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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.

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.

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