Mercurial > dwindows
comparison dwtest.c @ 512:8eb10e610270
Changes to dw_scrollbar_new().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 09 Mar 2004 03:58:54 +0000 |
parents | 710f82598210 |
children | 08d770271709 |
comparison
equal
deleted
inserted
replaced
511:80dbd5a1f403 | 512:8eb10e610270 |
---|---|
613 /* create render box for filecontents pixmap */ | 613 /* create render box for filecontents pixmap */ |
614 textbox2 = dw_render_new( 101 ); | 614 textbox2 = dw_render_new( 101 ); |
615 dw_box_pack_start( textboxA, textbox2, 10, 10, TRUE, TRUE, 0); | 615 dw_box_pack_start( textboxA, textbox2, 10, 10, TRUE, TRUE, 0); |
616 dw_window_set_font(textbox2, FIXEDFONT); | 616 dw_window_set_font(textbox2, FIXEDFONT); |
617 /* create horizonal scrollbar */ | 617 /* create horizonal scrollbar */ |
618 hscrollbar = dw_scrollbar_new(FALSE, 100, 50); | 618 hscrollbar = dw_scrollbar_new(FALSE, 50); |
619 dw_box_pack_start( textboxA, hscrollbar, 100, SCROLLBARWIDTH, TRUE, FALSE, 0); | 619 dw_box_pack_start( textboxA, hscrollbar, 100, SCROLLBARWIDTH, TRUE, FALSE, 0); |
620 | 620 |
621 /* create vertical scrollbar */ | 621 /* create vertical scrollbar */ |
622 vscrollbox = dw_box_new(BOXVERT, 0); | 622 vscrollbox = dw_box_new(BOXVERT, 0); |
623 vscrollbar = dw_scrollbar_new(TRUE, 100, 50); | 623 vscrollbar = dw_scrollbar_new(TRUE, 50); |
624 dw_box_pack_start(vscrollbox, vscrollbar, SCROLLBARWIDTH, 100, FALSE, TRUE, 0); | 624 dw_box_pack_start(vscrollbox, vscrollbar, SCROLLBARWIDTH, 100, FALSE, TRUE, 0); |
625 /* Pack an area of empty space 14x14 pixels */ | 625 /* Pack an area of empty space 14x14 pixels */ |
626 dw_box_pack_start(vscrollbox, 0, SCROLLBARWIDTH, SCROLLBARWIDTH, FALSE, FALSE, 0); | 626 dw_box_pack_start(vscrollbox, 0, SCROLLBARWIDTH, SCROLLBARWIDTH, FALSE, FALSE, 0); |
627 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); | 627 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); |
628 | 628 |