application/application.c

Wed, 09 Dec 2020 11:33:00 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 09 Dec 2020 11:33:00 +0100
changeset 1
fcacc15a2ef2
parent 0
804d8803eade
child 2
ea89bbb0c4c8
permissions
-rw-r--r--

add .hgignore



#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);
}

mercurial