diff -r 08e0a66d3bd6 -r 1f251c462f74 application/main.c
--- a/application/main.c	Mon Feb 17 22:17:21 2025 +0100
+++ b/application/main.c	Wed Feb 19 22:44:49 2025 +0100
@@ -34,6 +34,8 @@
 #include <cx/buffer.h>
 #include <cx/utils.h>
 
+#include "cx/string.h"
+
 #if !defined(UI_COCOA) && !defined(UI_MOTIF)
 
 typedef struct {
@@ -51,6 +53,7 @@
     UiList *srclist1;
     UiList *srclist2;
     UiList *items;
+    UiGeneric *web;
 } MyDocument;
 
 MyDocument *doc1;
@@ -185,6 +188,8 @@
     ui_list_append(doc->items, "Item 2");
     ui_list_append(doc->items, "Item 3");
     
+    doc->web = ui_generic_new(docctx, NULL);
+    
     //doc->text = ui_text_new(docctx, "text");
     return doc;
 }
@@ -480,7 +485,9 @@
         }
         ui_tab(obj, "Tab 9") {
 #ifdef UI_WEBVIEW
-          ui_webview(obj, .fill = UI_ON);
+          ui_webview(obj, .fill = UI_ON, .value = doc->web);
+          cxstring html = CX_STR("<html><body><h1>Hello Toolkit</h1><p>Toolkit WebView</p></body></html>");
+          ui_webview_load_content(doc->web, "mypage", html.ptr, html.length, NULL, NULL);
 #else
           ui_label(obj, "Webview is not supported");
 #endif