Mercurial > dwindows
comparison dwtest.c @ 398:255a31a3a1f5
Change to dw_messagebox() call
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 09 May 2003 12:52:38 +0000 |
parents | 2059f18e9c20 |
children | 903fb3085d42 |
comparison
equal
deleted
inserted
replaced
397:a154ab15c0ed | 398:255a31a3a1f5 |
---|---|
265 { | 265 { |
266 dw_window_set_text((HWND)cursortogglebutton,"Set Cursor pointer - CLOCK"); | 266 dw_window_set_text((HWND)cursortogglebutton,"Set Cursor pointer - CLOCK"); |
267 dw_window_pointer((HWND)data,DW_POINTER_ARROW); | 267 dw_window_pointer((HWND)data,DW_POINTER_ARROW); |
268 cursor_arrow = 1; | 268 cursor_arrow = 1; |
269 } | 269 } |
270 dw_window_show(mainwindow); | |
271 return FALSE; | 270 return FALSE; |
272 } | 271 } |
273 | 272 |
274 int DWSIGNAL beep_callback(HWND window, void *data) | 273 int DWSIGNAL beep_callback(HWND window, void *data) |
275 { | 274 { |
549 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); | 548 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); |
550 | 549 |
551 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth ); | 550 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth ); |
552 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth ); | 551 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth ); |
553 | 552 |
554 dw_messagebox("DWTest", "Width: %d Height: %d\n", font_width, font_height); | 553 dw_messagebox("DWTest", DW_MB_OK|DW_MB_INFORMATION, "Width: %d Height: %d\n", font_width, font_height); |
555 dw_draw_rect(0, text1pm, TRUE, 0, 0, font_width*width1, font_height*rows); | 554 dw_draw_rect(0, text1pm, TRUE, 0, 0, font_width*width1, font_height*rows); |
556 dw_draw_rect(0, text2pm, TRUE, 0, 0, font_width*cols, font_height*rows); | 555 dw_draw_rect(0, text2pm, TRUE, 0, 0, font_width*cols, font_height*rows); |
557 dw_signal_connect(textbox1, DW_SIGNAL_EXPOSE, DW_SIGNAL_FUNC(text_expose), NULL); | 556 dw_signal_connect(textbox1, DW_SIGNAL_EXPOSE, DW_SIGNAL_FUNC(text_expose), NULL); |
558 dw_signal_connect(textbox2, DW_SIGNAL_EXPOSE, DW_SIGNAL_FUNC(text_expose), NULL); | 557 dw_signal_connect(textbox2, DW_SIGNAL_EXPOSE, DW_SIGNAL_FUNC(text_expose), NULL); |
559 dw_signal_connect(textbox2, DW_SIGNAL_CONFIGURE, DW_SIGNAL_FUNC(configure_event), text2pm); | 558 dw_signal_connect(textbox2, DW_SIGNAL_CONFIGURE, DW_SIGNAL_FUNC(configure_event), text2pm); |