comparison dwtest.c @ 253:e041ce42659a

Added a comment describing how it works.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 19 Feb 2003 19:08:40 +0000
parents eab1540444b2
children 42332e598d55
comparison
equal deleted inserted replaced
252:eab1540444b2 253:e041ce42659a
288 288
289 /* create vertical scrollbar */ 289 /* create vertical scrollbar */
290 vscrollbox = dw_box_new(BOXVERT, 0); 290 vscrollbox = dw_box_new(BOXVERT, 0);
291 vscrollbar = dw_scrollbar_new(TRUE, 100, 50); 291 vscrollbar = dw_scrollbar_new(TRUE, 100, 50);
292 dw_box_pack_start(vscrollbox, vscrollbar, 14, 100, FALSE, TRUE, 0); 292 dw_box_pack_start(vscrollbox, vscrollbar, 14, 100, FALSE, TRUE, 0);
293 /* Pack an area of empty space 14x14 pixels */
293 dw_box_pack_start(vscrollbox, 0, 14, 14, FALSE, FALSE, 0); 294 dw_box_pack_start(vscrollbox, 0, 14, 14, FALSE, FALSE, 0);
294 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); 295 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0);
295 296
296 text1pm = dw_pixmap_new( textbox1, (font_width*width1)+2, font_height*rows, depth ); 297 text1pm = dw_pixmap_new( textbox1, (font_width*width1)+2, font_height*rows, depth );
297 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth ); 298 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth );