500 #ifdef UI_WEBVIEW |
500 #ifdef UI_WEBVIEW |
501 ui_webview(obj, .fill = UI_ON, .value = doc->web); |
501 ui_webview(obj, .fill = UI_ON, .value = doc->web); |
502 cxstring html = CX_STR("<html><body><h1>Hello Toolkit</h1><p>Toolkit WebView</p></body></html>"); |
502 cxstring html = CX_STR("<html><body><h1>Hello Toolkit</h1><p>Toolkit WebView</p></body></html>"); |
503 ui_webview_load_content(doc->web, "mypage", html.ptr, html.length, NULL, NULL); |
503 ui_webview_load_content(doc->web, "mypage", html.ptr, html.length, NULL, NULL); |
504 #else |
504 #else |
505 ui_label(obj, "Webview is not supported"); |
505 ui_label(obj, .label = "Webview is not supported"); |
506 #endif |
506 #endif |
507 } |
507 } |
508 ui_tab(obj, "Tab 10") { |
508 ui_tab(obj, "Tab 10") { |
509 ui_grid(obj, .margin = 10, .rowspacing = 10, .columnspacing = 10, .def_vfill = TRUE) { |
509 ui_grid(obj, .margin = 10, .rowspacing = 10, .columnspacing = 10, .def_vfill = TRUE) { |
510 ui_label(obj, .label = "Name"); |
510 ui_label(obj, .label = "Name"); |