adamdruppe / arsd

This is a collection of modules that I've released over the years. Most of them stand alone, or have just one or two dependencies in here, so you don't have to download this whole repo.
http://arsd-official.dpldocs.info/arsd.html
530 stars 127 forks source link

minigui: checkbox in scrollable widget on win32 not checkable #292

Open WebFreak001 opened 3 years ago

WebFreak001 commented 3 years ago

I'm creating a checkbox in a vertical layout inside a scrollable widget on windows, but when I try to click it, nothing changes and the event isn't triggered.

Code:

auto window = new MainWindow();

auto scroll = new ScrollableWidget(window);
auto list = new VerticalLayout(scroll);
auto cb = new Checkbox("active", list);
cb.addEventListener(EventType.change, (v) {
    writeln("change to ", cb.isChecked);
});

window.loop();
adamdruppe commented 3 years ago

this is fixed in my version too so ill push soon. ended up completely redoing the scroll approach.