Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Value of HCheckBox #1

Open
nlon982 opened this issue Sep 10, 2020 · 0 comments
Open

Default Value of HCheckBox #1

nlon982 opened this issue Sep 10, 2020 · 0 comments

Comments

@nlon982
Copy link

nlon982 commented Sep 10, 2020

I noticed HCheckBox's value is set to nothing at all despite being the state unticked - so it requires ticking and unticking to finally yield 0 when calling isChecked(). Note unticked corresponds with 0, and ticked corresponds with 1.

I assume this behavior isn't intended? I can attest that it's most definitely is helpful to have it set to 0 from the get go (and no doubt goes along with coding principles).

A quick and dirty fix is this if you want to add that:
image

To avoid meddling with the library, i'm currently doing it myself in my code, i.e.:
image

Anyway, thank you heaps for making this library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant