# 3-state checkbox

**URL:** <https://www.ruby-forum.com/t/3-state-checkbox/201513>\
**Category:** wxRuby\
**Created:** [January 9, 2011, 8:28pm UTC](https://www.ruby-forum.com/t/3-state-checkbox/201513 "2011-01-09T20:28:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 9, 2011, 8:28pm UTC](https://www.ruby-forum.com/t/3-state-checkbox/201513/1 "2011-01-09T20:28:59Z")

</div>

Hi There–Just wanted to see if anyone could confirm for me that the  
3-state checkbox is not actually implemented, contrary to the  
documentation. The window style Wx::CHK\_3STATE does not appear to be  
available, nor any of its related methods. If it’s really not there,  
I’ll post a new feature request.

Thanks!  
P

---

<div class="post-metadata">

**Author:** ![Peter\_Ellis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@Peter\_Ellis](https://www.ruby-forum.com/u/Peter_Ellis)\
**Post date:** [January 11, 2011, 12:45pm UTC](https://www.ruby-forum.com/t/3-state-checkbox/201513/2 "2011-01-11T12:45:47Z")

</div>

Hi Peter

On 09/01/11 19:27, Peter Ellis wrote:

> Just wanted to see if anyone could confirm for me that the  
> 3-state checkbox is not actually implemented, contrary to the  
> documentation. The window style Wx::CHK\_3STATE does not appear to be  
> available, nor any of its related methods. If it’s really not there,  
> I’ll post a new feature request.

It’s really not there. I looked it up in Wx C++ and its value is 0x1000  
/ 4096 - you can just add this in Ruby.

Wx::CHK\_3STATE = 0x1000

But as you say, it should be in the library, so it’d be great if you  
could post a bug note so this gets corrected.

thanks  
alex

---

<div class="post-metadata">

**Author:** ![Peter\_Ellis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@Peter\_Ellis](https://www.ruby-forum.com/u/Peter_Ellis)\
**Post date:** [January 18, 2011, 10:43am UTC](https://www.ruby-forum.com/t/3-state-checkbox/201513/3 "2011-01-18T10:43:07Z")

</div>

Thanks, Alex. I just posted a bug for this issue. It turned out that  
setting the correct style constant didn’t help much because the  
related three-state methods are still missing.
