Sign in to follow this  
Followers 0
xwing1978

Three-state Check Box Problems

3 posts in this topic

I attempted to create a three-state check box using the following code (this is an excerpt):

$Checkbox_2 = GuiCtrlCreateCheckbox( "Checkbox2", 30, 50, 140, 20, $BS_3STATE )

When the script is run, there is no check box but a group where the checkbox should be.

Am I missing something???

Share this post


Link to post
Share on other sites

Hi xwing: this is normal cause when you create a checkbox then AutoCheckBox-Style is forced (like in the helpfile described).

Maybe we should change this behaviour...

Here is what you can do at the moment to solve this thing:

$Checkbox_2 = GuiCtrlCreateCheckbox( "Checkbox2", 30, 50, 140, 20)
GUICtrlSetStyle(-1, $BS_AUTO3STATE )

Regards Holger

Share this post


Link to post
Share on other sites

That does it, Thanks!!!

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