Mercurial > dwindows
comparison dwtest.c @ 636:f6f887d2c5aa
Add _dw_log() internal logging function
Preliminary support for building with GTK+ on Windows with MinGW
Deprecate dw_menu_item_set_check(); use dw_menu_item_set_state()
Support dw_window_set_text() from groupbox
Support transparent bitmaps( GTK+ already did by default)
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 10 Apr 2009 22:55:56 +0000 |
parents | c6a216c8174f |
children | 9fa3cb5b3290 |
comparison
equal
deleted
inserted
replaced
635:6cec85b90635 | 636:f6f887d2c5aa |
---|---|
487 dw_window_destroy( filetoolbarbox ); | 487 dw_window_destroy( filetoolbarbox ); |
488 create_button(1); | 488 create_button(1); |
489 dw_window_set_pos_size(filetoolbarbox, x, y, width, height); | 489 dw_window_set_pos_size(filetoolbarbox, x, y, width, height); |
490 #else | 490 #else |
491 dw_window_enable( window); | 491 dw_window_enable( window); |
492 dw_menu_delete_item( changeable_menu, NONCHECKABLE_MENUITEMID ); | 492 dw_window_destroy( noncheckable_menuitem ); |
493 #endif | 493 #endif |
494 return 0; | 494 return 0; |
495 } | 495 } |
496 | 496 |
497 int DWSIGNAL change_color_red_callback(HWND window, void *data) | 497 int DWSIGNAL change_color_red_callback(HWND window, void *data) |
925 int i; | 925 int i; |
926 char buf[20]; | 926 char buf[20]; |
927 char **text; | 927 char **text; |
928 | 928 |
929 /* create a box to pack into the notebook page */ | 929 /* create a box to pack into the notebook page */ |
930 // buttonsbox = dw_scrollbox_new(BOXVERT, 2); | |
931 buttonsbox = dw_box_new(BOXVERT, 2); | 930 buttonsbox = dw_box_new(BOXVERT, 2); |
932 dw_box_pack_start( notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0); | 931 dw_box_pack_start( notebookbox5, buttonsbox, 25, 200, TRUE, TRUE, 0); |
933 dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED); | 932 dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED); |
934 | 933 |
935 calbox = dw_box_new(DW_HORZ, 0); | 934 calbox = dw_box_new(DW_HORZ, 0); |
1172 notebookbox7 = dw_box_new( BOXVERT, 6 ); | 1171 notebookbox7 = dw_box_new( BOXVERT, 6 ); |
1173 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE ); | 1172 notebookpage7 = dw_notebook_page_new( notebook, 1, FALSE ); |
1174 dw_notebook_pack( notebook, notebookpage7, notebookbox7 ); | 1173 dw_notebook_pack( notebook, notebookpage7, notebookbox7 ); |
1175 dw_notebook_page_set_text( notebook, notebookpage7, "html"); | 1174 dw_notebook_page_set_text( notebook, notebookpage7, "html"); |
1176 | 1175 |
1176 #if 1 | |
1177 rawhtml = dw_html_new(1001); | 1177 rawhtml = dw_html_new(1001); |
1178 dw_box_pack_start( notebookbox7, rawhtml, 0, 100, TRUE, FALSE, 0); | 1178 dw_box_pack_start( notebookbox7, rawhtml, 0, 100, TRUE, FALSE, 0); |
1179 dw_html_raw(rawhtml, "<html><body><center><h1>dwtest</h1></center></body></html>"); | 1179 dw_html_raw(rawhtml, "<html><body><center><h1>dwtest</h1></center></body></html>"); |
1180 html = dw_html_new(1002); | 1180 html = dw_html_new(1002); |
1181 dw_box_pack_start( notebookbox7, html, 0, 100, TRUE, TRUE, 0); | 1181 dw_box_pack_start( notebookbox7, html, 0, 100, TRUE, TRUE, 0); |
1184 dw_html_url(html, "http://dwindows.netlabs.org"); | 1184 dw_html_url(html, "http://dwindows.netlabs.org"); |
1185 * but as the base file is XML, the Windows browser instance can't display it. | 1185 * but as the base file is XML, the Windows browser instance can't display it. |
1186 * Instead a pure HTML based web page is displayed. MHES 5/4/2008 | 1186 * Instead a pure HTML based web page is displayed. MHES 5/4/2008 |
1187 */ | 1187 */ |
1188 dw_html_url(html, "http://www.rexx.org"); | 1188 dw_html_url(html, "http://www.rexx.org"); |
1189 | 1189 #endif |
1190 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); | 1190 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); |
1191 timerid = dw_timer_connect(2000, DW_SIGNAL_FUNC(timer_callback), 0); | 1191 timerid = dw_timer_connect(2000, DW_SIGNAL_FUNC(timer_callback), 0); |
1192 dw_window_set_size(mainwindow, 640, 520); | 1192 dw_window_set_size(mainwindow, 640, 520); |
1193 dw_window_show(mainwindow); | 1193 dw_window_show(mainwindow); |
1194 | 1194 |