comparison dwtest.c @ 958:5320a168cc0d

(none)
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 02 May 2011 05:31:36 +0000
parents beed3e7f9d4b
children 64c4c40c5835
comparison
equal deleted inserted replaced
957:beed3e7f9d4b 958:5320a168cc0d
880 dw_box_pack_start(vscrollbox, 0, SCROLLBARWIDTH, SCROLLBARWIDTH, FALSE, FALSE, 0); 880 dw_box_pack_start(vscrollbox, 0, SCROLLBARWIDTH, SCROLLBARWIDTH, FALSE, FALSE, 0);
881 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); 881 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0);
882 882
883 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, (int)depth ); 883 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, (int)depth );
884 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, (int)depth ); 884 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, (int)depth );
885 image = dw_pixmap_new_from_file(textbox2, "mac/folder.png"); 885 image = dw_pixmap_new_from_file(textbox2, "image/test");
886 if(!image) 886 if(!image)
887 image = dw_pixmap_new_from_file(textbox2, "~/folder.png"); 887 image = dw_pixmap_new_from_file(textbox2, "~/test");
888 888 if(image)
889 dw_pixmap_set_transparent_color(image, DW_CLR_WHITE);
889 890
890 dw_messagebox("DWTest", DW_MB_OK|DW_MB_INFORMATION, "Width: %d Height: %d\n", font_width, font_height); 891 dw_messagebox("DWTest", DW_MB_OK|DW_MB_INFORMATION, "Width: %d Height: %d\n", font_width, font_height);
891 dw_draw_rect(0, text1pm, TRUE, 0, 0, font_width*width1, font_height*rows); 892 dw_draw_rect(0, text1pm, TRUE, 0, 0, font_width*width1, font_height*rows);
892 dw_draw_rect(0, text2pm, TRUE, 0, 0, font_width*cols, font_height*rows); 893 dw_draw_rect(0, text2pm, TRUE, 0, 0, font_width*cols, font_height*rows);
893 dw_signal_connect(textbox1, DW_SIGNAL_EXPOSE, DW_SIGNAL_FUNC(text_expose), NULL); 894 dw_signal_connect(textbox1, DW_SIGNAL_EXPOSE, DW_SIGNAL_FUNC(text_expose), NULL);