Closed MichealShinoda closed 2 years ago
I couldn't find any information on how to connecting frontend (button clicks) to backend. Let's say I have a button like this:
<w type="button" class="btn ml-3">Start Application</w>
How can I add click event to the xml file and program it in C? Thanks
Here are the steps:
id
LCUIWidget_GetById()
Widget_BindEvent()
Examples for reference:
https://github.com/lc-soft/LCUI/blob/ea409f1339580c2f5267597a134c0a8c17d1e5e5/test/helloworld.c#L1-L33
https://github.com/lc-soft/LCUI/blob/ea409f1339580c2f5267597a134c0a8c17d1e5e5/test/helloworld.xml#L1-L11
Worked like charm!
I couldn't find any information on how to connecting frontend (button clicks) to backend. Let's say I have a button like this:
How can I add click event to the xml file and program it in C? Thanks