Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
583:67dfd0cea50d | 584:420c6c94abc7 |
---|---|
63 notebookbox2, | 63 notebookbox2, |
64 notebookbox3, | 64 notebookbox3, |
65 notebookbox4, | 65 notebookbox4, |
66 notebookbox5, | 66 notebookbox5, |
67 notebookbox6, | 67 notebookbox6, |
68 html, | |
68 notebook, | 69 notebook, |
69 vscrollbar, | 70 vscrollbar, |
70 hscrollbar, | 71 hscrollbar, |
71 status, status1, | 72 status, status1, |
72 container_status, | 73 container_status, |
863 ULONG notebookpage2; | 864 ULONG notebookpage2; |
864 ULONG notebookpage3; | 865 ULONG notebookpage3; |
865 ULONG notebookpage4; | 866 ULONG notebookpage4; |
866 ULONG notebookpage5; | 867 ULONG notebookpage5; |
867 ULONG notebookpage6; | 868 ULONG notebookpage6; |
869 ULONG notebookpage7; | |
868 | 870 |
869 dw_init(TRUE, argc, argv); | 871 dw_init(TRUE, argc, argv); |
870 | 872 |
871 mainwindow = dw_window_new( HWND_DESKTOP, "dwindows test", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX ); | 873 mainwindow = dw_window_new( HWND_DESKTOP, "dwindows test", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX ); |
872 | 874 |
911 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE ); | 913 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE ); |
912 dw_notebook_pack( notebook, notebookpage6, notebookbox6 ); | 914 dw_notebook_pack( notebook, notebookpage6, notebookbox6 ); |
913 dw_notebook_page_set_text( notebook, notebookpage6, "mdi"); | 915 dw_notebook_page_set_text( notebook, notebookpage6, "mdi"); |
914 mdi_add(); | 916 mdi_add(); |
915 | 917 |
918 html = dw_html_new(0); | |
919 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE ); | |
920 dw_notebook_pack( notebook, notebookpage7, html ); | |
921 dw_notebook_page_set_text( notebook, notebookpage7, "html"); | |
922 dw_html_url(html, "http://dwindows.netlabs.org"); | |
923 | |
916 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); | 924 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); |
917 timerid = dw_timer_connect(1000, DW_SIGNAL_FUNC(timer_callback), 0); | 925 timerid = dw_timer_connect(1000, DW_SIGNAL_FUNC(timer_callback), 0); |
918 dw_window_set_icon(mainwindow, fileicon); | 926 dw_window_set_icon(mainwindow, fileicon); |
919 dw_window_set_size(mainwindow, 640, 480); | 927 dw_window_set_size(mainwindow, 640, 480); |
920 dw_window_show(mainwindow); | 928 dw_window_show(mainwindow); |