ref: 6ff9ef0c4bef23bfd91f33f0c2f5cab0b88c0307
parent: c04fd4ce67a03c04b342c38185523bb834f4e0b7
author: sirjofri <[email protected]>
date: Fri Nov 15 10:58:26 EST 2024
adds onclick handler to first NBox
--- a/test/ntest.c
+++ b/test/ntest.c
@@ -69,6 +69,7 @@
NAssign(NBox, &box1, New_Box())
->Border(1, green)
->SizeToContent(1)
+ ->OnClick(callclick, nil)
->Slot(
New_Label()
->LabelFunc(getlabel)
@@ -78,7 +79,7 @@
NAssign(NBox, &box2, New_Box())
->Border(1, blue)
->SizeToContent(1)
- ->OnClick(callclick, nil) // TODO: somehow on wrong element!
+ ->OnClick(callclick, nil)
->Slot(
New_Label()
->Label("DEF")