comparison dwtest.c @ 514:08d770271709

More function name changes for Rexx/DW compatibility.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 12 Mar 2004 23:47:37 +0000
parents 8eb10e610270
children c3c5d8e36aa3
comparison
equal deleted inserted replaced
513:7755599311d4 514:08d770271709
387 387
388 /* Handle size change of the main render window */ 388 /* Handle size change of the main render window */
389 int DWSIGNAL configure_event(HWND hwnd, int width, int height, void *data) 389 int DWSIGNAL configure_event(HWND hwnd, int width, int height, void *data)
390 { 390 {
391 HPIXMAP old1 = text1pm, old2 = text2pm; 391 HPIXMAP old1 = text1pm, old2 = text2pm;
392 int depth = dw_color_depth(); 392 int depth = dw_color_depth_get();
393 393
394 rows = height / font_height; 394 rows = height / font_height;
395 cols = width / font_width; 395 cols = width / font_width;
396 396
397 /* Create new pixmaps with the current sizes */ 397 /* Create new pixmaps with the current sizes */
578 } 578 }
579 579
580 580
581 void text_add(void) 581 void text_add(void)
582 { 582 {
583 int depth = dw_color_depth(); 583 int depth = dw_color_depth_get();
584 HWND vscrollbox; 584 HWND vscrollbox;
585 585
586 /* create a box to pack into the notebook page */ 586 /* create a box to pack into the notebook page */
587 pagebox = dw_box_new(BOXHORZ, 2); 587 pagebox = dw_box_new(BOXHORZ, 2);
588 dw_box_pack_start( notebookbox2, pagebox, 0, 0, TRUE, TRUE, 0); 588 dw_box_pack_start( notebookbox2, pagebox, 0, 0, TRUE, TRUE, 0);
594 dw_box_pack_start( notebookbox2, status1, 100, 20, TRUE, FALSE, 1); 594 dw_box_pack_start( notebookbox2, status1, 100, 20, TRUE, FALSE, 1);
595 595
596 /* create render box for number pixmap */ 596 /* create render box for number pixmap */
597 textbox1 = dw_render_new( 100 ); 597 textbox1 = dw_render_new( 100 );
598 dw_window_set_font(textbox1, FIXEDFONT); 598 dw_window_set_font(textbox1, FIXEDFONT);
599 dw_font_text_extents(textbox1, NULL, "(g", &font_width, &font_height); 599 dw_font_text_extents_get(textbox1, NULL, "(g", &font_width, &font_height);
600 font_width = font_width / 2; 600 font_width = font_width / 2;
601 vscrollbox = dw_box_new(BOXVERT, 0); 601 vscrollbox = dw_box_new(BOXVERT, 0);
602 dw_box_pack_start(vscrollbox, textbox1, font_width*width1, font_height*rows, FALSE, TRUE, 0); 602 dw_box_pack_start(vscrollbox, textbox1, font_width*width1, font_height*rows, FALSE, TRUE, 0);
603 dw_box_pack_start(vscrollbox, 0, (font_width*(width1+1)), SCROLLBARWIDTH, FALSE, FALSE, 0); 603 dw_box_pack_start(vscrollbox, 0, (font_width*(width1+1)), SCROLLBARWIDTH, FALSE, FALSE, 0);
604 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); 604 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0);