haxeui / haxeui-openfl

The OpenFL backend of the HaxeUI framework -
http://haxeui.org
MIT License
42 stars 14 forks source link

the checkbox appears not to be selected, but when you hover it with the mouse #41

Closed ianharrigan closed 5 years ago

ianharrigan commented 5 years ago
package;

import haxe.ui.Toolkit;
import haxe.ui.components.CheckBox;
import haxe.ui.components.OptionBox;
import haxe.ui.containers.VBox;
import haxe.ui.core.Screen;
import openfl.display.Sprite;

class Main extends Sprite
{
public function new()
{
super();

    Toolkit.init();

    var vbox:VBox = new VBox();
    Screen.instance.addComponent(vbox);

    var chk:CheckBox = new CheckBox();
    chk.id = chk.name = "chk1";
    chk.text = "hello";
    vbox.addComponent(chk);

    chk.selected = true;

    //the checkbox appears not to be selected, but when you hover it with the mouse
    //the visual is updated and it becomes ok
}
}
ianharrigan commented 5 years ago

Ok, this should also be fixed now, same thing, can you retest and close if you are happy?

Cheers, Ian

Helgiii commented 5 years ago

yep, works just fine thanks for quick fix! this can be closed (I can't close it since i'm not the opener)

ianharrigan commented 5 years ago

Ah, good point :D