--- a/application/main.c Tue Oct 14 10:41:21 2025 +0200 +++ b/application/main.c Tue Oct 14 12:48:55 2025 +0200 @@ -584,6 +584,13 @@ return FALSE; } +static void draw(UiEvent *event, UiGraphics *g, void *userdata) { + ui_draw_line(g, 0, 0, g->width, g->height); + ui_draw_line(g, g->width, 0, 0, g->height); + + ui_draw_rect(g, (g->width/2)-80, (g->height/2)-40, 160, 80, FALSE); +} + void application_startup(UiEvent *event, void *data) { // global list UiContext *global = ui_global_context(); @@ -789,6 +796,9 @@ } } } + ui_tab(obj, "Tab 12") { + ui_drawingarea(obj, .fill = TRUE, .draw = draw); + } } /*