Wed, 09 Dec 2020 11:32:01 +0100
add existing toolkit source
#include "application.h" #include <stdio.h> #include <stdlib.h> #include <string.h> void application_startup(UiEvent *event, void *data) { UiObject *win = ui_window("Note", NULL); UI_VBOX(win) { ui_button(win, "Line1", NULL, NULL); ui_button(win, "Line2", NULL, NULL); UI_HBOX(win) { ui_button(win, "Line3_1", NULL, NULL); ui_button(win, "Line3_2", NULL, NULL); ui_button(win, "Line3_3", NULL, NULL); } UI_CTN(win, ui_hbox_sp(win, 10, 10)) { ui_label(win, "1"); ui_label(win, "2"); ui_layout_fill(win, TRUE); ui_textfield(win, NULL); } ui_button(win, "Line4", NULL, NULL); } ui_show(win); }