Closed HaSa1002 closed 12 months ago
Window
doesn't process BN_CLICKED
directly on Windows now,
wrapping the button with a container will work as a workaround.
try window.set(capy.Row(
.{ .wrapping = true },
.{capy.Button(.{ .label = "Some text", .onclick = onButtonClicked })},
));
Yeah I did that later, but the getting started guide does so hence the confusion. It should get documented probably?
The button callback gets not invoked on Windows. Maybe I am stupid (I am just toying around with zig and capy and learn as I go).
Observed behaviour
Window is created, the button has the label "Some text" and on click nothing happens.
Expected behaviour
Windows is created, the button has the label "Some text" and on click "wow" is printed and the label text is set to "Was clicked".
Sys Info
Windows 10 Zig:
0.11.0-dev.3937+78eb3c561