application/main.c

changeset 1016
ccde46662db7
parent 1004
8b8d4f8af38e
equal deleted inserted replaced
1015:b459361d98ad 1016:ccde46662db7
781 } 781 }
782 } 782 }
783 ui_tab(obj, "Tab 9") { 783 ui_tab(obj, "Tab 9") {
784 #ifdef UI_WEBVIEW 784 #ifdef UI_WEBVIEW
785 ui_webview(obj, .fill = TRUE, .value = doc->web); 785 ui_webview(obj, .fill = TRUE, .value = doc->web);
786 cxstring html = CX_STR("<html><body><h1>Hello Toolkit</h1><p>Toolkit WebView</p></body></html>"); 786 cxstring html = cx_str("<html><body><h1>Hello Toolkit</h1><p>Toolkit WebView</p></body></html>");
787 ui_webview_load_content(doc->web, "mypage", html.ptr, html.length, NULL, NULL); 787 ui_webview_load_content(doc->web, "mypage", html.ptr, html.length, NULL, NULL);
788 #else 788 #else
789 ui_label(obj, .label = "Webview is not supported"); 789 ui_label(obj, .label = "Webview is not supported");
790 #endif 790 #endif
791 } 791 }

mercurial