Mercurial > dwindows
comparison dwtest.c @ 289:0e6f09149eaa
Fixed some EMX warnings.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 19 Mar 2003 14:58:23 +0000 |
parents | 3431e445d831 |
children | 315812516608 |
comparison
equal
deleted
inserted
replaced
288:92367f4c0836 | 289:0e6f09149eaa |
---|---|
69 return TRUE; | 69 return TRUE; |
70 | 70 |
71 width = DW_PIXMAP_WIDTH(hpm); | 71 width = DW_PIXMAP_WIDTH(hpm); |
72 height = DW_PIXMAP_HEIGHT(hpm); | 72 height = DW_PIXMAP_HEIGHT(hpm); |
73 | 73 |
74 dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, NULL, hpm, 0, 0 ); | 74 dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, 0, hpm, 0, 0 ); |
75 dw_flush(); | 75 dw_flush(); |
76 return TRUE; | 76 return TRUE; |
77 } | 77 } |
78 | 78 |
79 void read_file( void ) | 79 void read_file( void ) |
116 for ( i = 0;(i < rows) && (i+row < num_lines); i++) | 116 for ( i = 0;(i < rows) && (i+row < num_lines); i++) |
117 { | 117 { |
118 y = i*(font_height+font_gap); | 118 y = i*(font_height+font_gap); |
119 dw_color_foreground_set( i ); | 119 dw_color_foreground_set( i ); |
120 sprintf( buf, "%6.6d", i+row ); | 120 sprintf( buf, "%6.6d", i+row ); |
121 dw_draw_text( NULL, text1pm, 0, y, buf); | 121 dw_draw_text( 0, text1pm, 0, y, buf); |
122 pLine = lp[i+row]; | 122 pLine = lp[i+row]; |
123 dw_draw_text( NULL, text2pm, 0, y, pLine+col ); | 123 dw_draw_text( 0, text2pm, 0, y, pLine+col ); |
124 } | 124 } |
125 text_expose( textbox1, NULL, NULL); | 125 text_expose( textbox1, NULL, NULL); |
126 text_expose( textbox2, NULL, NULL); | 126 text_expose( textbox2, NULL, NULL); |
127 } | 127 } |
128 } | 128 } |
347 | 347 |
348 /* now a tree area under this box */ | 348 /* now a tree area under this box */ |
349 tree = dw_tree_new(0); | 349 tree = dw_tree_new(0); |
350 dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1); | 350 dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1); |
351 | 351 |
352 t1 = dw_tree_insert(tree, "tree item 1", 0, NULL, NULL ); | 352 t1 = dw_tree_insert(tree, "tree item 1", 0, 0, 0 ); |
353 t2 = dw_tree_insert(tree, "tree item 2", 0, NULL, NULL ); | 353 t2 = dw_tree_insert(tree, "tree item 2", 0, 0, 0 ); |
354 t3 = dw_tree_insert(tree, "tree item 3", 0, t2, NULL ); | 354 t3 = dw_tree_insert(tree, "tree item 3", 0, t2, 0 ); |
355 | 355 |
356 /* | 356 /* |
357 dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); | 357 dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); |
358 dw_signal_connect(textbox2, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); | 358 dw_signal_connect(textbox2, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); |
359 dw_signal_connect(textbox2, "configure_event", DW_SIGNAL_FUNC(configure_event), text2pm); | 359 dw_signal_connect(textbox2, "configure_event", DW_SIGNAL_FUNC(configure_event), text2pm); |