comparison dwtest.c @ 1783:9de6d1cc8fb8

Put test program code into DEPRECATED #ifdef again to avoid build warnings. Added UTF-8/Wide string conversion functions which will be used in an editor.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 24 Jul 2012 22:52:57 +0000
parents d81bebc5c8cc
children c5ea64e8b436
comparison
equal deleted inserted replaced
1782:d056a50196a9 1783:9de6d1cc8fb8
1378 dw_window_redraw( filetoolbarbox ); 1378 dw_window_redraw( filetoolbarbox );
1379 dw_window_redraw( mainwindow ); 1379 dw_window_redraw( mainwindow );
1380 } 1380 }
1381 } 1381 }
1382 1382
1383 #ifdef DEPRECATED
1383 void mdi_add(void) 1384 void mdi_add(void)
1384 { 1385 {
1385 HWND mdibox, mdi, mdi1w, mdi1box, ef, mdi2w, mdi2box, bb; 1386 HWND mdibox, mdi, mdi1w, mdi1box, ef, mdi2w, mdi2box, bb;
1386 1387
1387 /* create a box to pack into the notebook page */ 1388 /* create a box to pack into the notebook page */
1409 bb = dw_button_new("Browse", 0); 1410 bb = dw_button_new("Browse", 0);
1410 dw_box_pack_start(mdi2box, bb, 60, 30, FALSE, FALSE, 4); 1411 dw_box_pack_start(mdi2box, bb, 60, 30, FALSE, FALSE, 4);
1411 dw_window_set_size(mdi2w, 200, 200); 1412 dw_window_set_size(mdi2w, 200, 200);
1412 dw_window_show(mdi2w); 1413 dw_window_show(mdi2w);
1413 } 1414 }
1415 #endif
1414 1416
1415 void menu_add(void) 1417 void menu_add(void)
1416 { 1418 {
1417 HMENUI menuitem,menu; 1419 HMENUI menuitem,menu;
1418 1420
1664 ULONG notebookpage1; 1666 ULONG notebookpage1;
1665 ULONG notebookpage2; 1667 ULONG notebookpage2;
1666 ULONG notebookpage3; 1668 ULONG notebookpage3;
1667 ULONG notebookpage4; 1669 ULONG notebookpage4;
1668 ULONG notebookpage5; 1670 ULONG notebookpage5;
1671 #ifdef DEPRECATED
1669 ULONG notebookpage6; 1672 ULONG notebookpage6;
1673 #endif
1670 ULONG notebookpage7; 1674 ULONG notebookpage7;
1671 ULONG notebookpage8; 1675 ULONG notebookpage8;
1672 ULONG notebookpage9; 1676 ULONG notebookpage9;
1673 1677
1674 /* Initialize the Dynamic Windows engine */ 1678 /* Initialize the Dynamic Windows engine */
1718 notebookpage5 = dw_notebook_page_new( notebook, 1, FALSE ); 1722 notebookpage5 = dw_notebook_page_new( notebook, 1, FALSE );
1719 dw_notebook_pack( notebook, notebookpage5, notebookbox5 ); 1723 dw_notebook_pack( notebook, notebookpage5, notebookbox5 );
1720 dw_notebook_page_set_text( notebook, notebookpage5, "buttons"); 1724 dw_notebook_page_set_text( notebook, notebookpage5, "buttons");
1721 buttons_add(); 1725 buttons_add();
1722 1726
1727 #ifdef DEPRECATED
1723 notebookbox6 = dw_box_new( DW_VERT, 5 ); 1728 notebookbox6 = dw_box_new( DW_VERT, 5 );
1724 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE ); 1729 notebookpage6 = dw_notebook_page_new( notebook, 1, FALSE );
1725 dw_notebook_pack( notebook, notebookpage6, notebookbox6 ); 1730 dw_notebook_pack( notebook, notebookpage6, notebookbox6 );
1726 dw_notebook_page_set_text( notebook, notebookpage6, "mdi"); 1731 dw_notebook_page_set_text( notebook, notebookpage6, "mdi");
1727 mdi_add(); 1732 mdi_add();
1733 #endif
1728 1734
1729 notebookbox7 = dw_box_new( DW_VERT, 6 ); 1735 notebookbox7 = dw_box_new( DW_VERT, 6 );
1730 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE ); 1736 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE );
1731 dw_notebook_pack( notebook, notebookpage7, notebookbox7 ); 1737 dw_notebook_pack( notebook, notebookpage7, notebookbox7 );
1732 dw_notebook_page_set_text( notebook, notebookpage7, "html"); 1738 dw_notebook_page_set_text( notebook, notebookpage7, "html");