# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1045681564 0 # Node ID eab1540444b2307b04a9801819313975fe50ef44 # Parent 18ecaae9cc3b56497921344f66605258947fd2ec Make an empty space where the scrollbars meet. diff -r 18ecaae9cc3b -r eab1540444b2 dwtest.c --- a/dwtest.c Wed Feb 19 17:26:41 2003 +0000 +++ b/dwtest.c Wed Feb 19 19:06:04 2003 +0000 @@ -259,6 +259,7 @@ void text_add(void) { int depth = dw_color_depth(); + HWND vscrollbox; /* create a box to pack into the notebook page */ pagebox = dw_box_new(BOXHORZ, 2); @@ -283,11 +284,14 @@ dw_window_set_font(textbox2, FIXEDFONT); /* create horizonal scrollbar */ hscrollbar = dw_scrollbar_new(FALSE, 100, 50); - dw_box_pack_start( textboxA, hscrollbar, 100, 20, TRUE, FALSE, 0); + dw_box_pack_start( textboxA, hscrollbar, 100, 14, TRUE, FALSE, 0); /* create vertical scrollbar */ + vscrollbox = dw_box_new(BOXVERT, 0); vscrollbar = dw_scrollbar_new(TRUE, 100, 50); - dw_box_pack_start(pagebox, vscrollbar, 20, 100, FALSE, TRUE, 0); + dw_box_pack_start(vscrollbox, vscrollbar, 14, 100, FALSE, TRUE, 0); + dw_box_pack_start(vscrollbox, 0, 14, 14, FALSE, FALSE, 0); + dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); text1pm = dw_pixmap_new( textbox1, (font_width*width1)+2, font_height*rows, depth ); text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth );