Mercurial > dwindows
diff dwtest.c @ 584:420c6c94abc7
Added dw_html_* functionality for embedding HTML pages in Dynamic Windows
applications.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 22 May 2005 18:07:23 +0000 |
parents | 81ca08481d49 |
children | d0e1db21e859 |
line wrap: on
line diff
--- a/dwtest.c Fri May 20 11:28:16 2005 +0000 +++ b/dwtest.c Sun May 22 18:07:23 2005 +0000 @@ -65,6 +65,7 @@ notebookbox4, notebookbox5, notebookbox6, + html, notebook, vscrollbar, hscrollbar, @@ -865,6 +866,7 @@ ULONG notebookpage4; ULONG notebookpage5; ULONG notebookpage6; + ULONG notebookpage7; dw_init(TRUE, argc, argv); @@ -913,6 +915,12 @@ dw_notebook_page_set_text( notebook, notebookpage6, "mdi"); mdi_add(); + html = dw_html_new(0); + notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE ); + dw_notebook_pack( notebook, notebookpage7, html ); + dw_notebook_page_set_text( notebook, notebookpage7, "html"); + dw_html_url(html, "http://dwindows.netlabs.org"); + dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); timerid = dw_timer_connect(1000, DW_SIGNAL_FUNC(timer_callback), 0); dw_window_set_icon(mainwindow, fileicon);