Core2 checkbox set_checked doesn't work
-
Hello everyone,
I'am using UiFlow Beta V1.7.1 with Core2 (v1.7.1-core2 firmware). The block Set checkbox checked seems doesn't really work after running on the device, checkbox remain unchecked.
When I use set_checked for toggling two checkboxes, it seems to work only sometimes.
-
Hello @mwenghi
I can confirm that
set_checked
doesn't work with UIFlow 1.7.1.1 firmware. I can change the text of a checkbox withset_text
, but changing the state of the checkbox doesn't work.Thanks
Felix -
@mwenghi I've worked out that set_checked does actually work. It changes the internal state of the checkbox from unchecked to checked, but it's not changing the visible state of the checkbox on the screen, so it doesn't appear to do anything!
If you add a set_checked_color call (in blockly it's the block set selectedColor) after your set_checked it will then show the relevant checkbox as checked in your desired color.
-