Mercurial > dwindows
comparison dwtest.c @ 252:eab1540444b2
Make an empty space where the scrollbars meet.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 19 Feb 2003 19:06:04 +0000 |
parents | 4e91b3c42e05 |
children | e041ce42659a |
comparison
equal
deleted
inserted
replaced
251:18ecaae9cc3b | 252:eab1540444b2 |
---|---|
257 | 257 |
258 | 258 |
259 void text_add(void) | 259 void text_add(void) |
260 { | 260 { |
261 int depth = dw_color_depth(); | 261 int depth = dw_color_depth(); |
262 HWND vscrollbox; | |
262 | 263 |
263 /* create a box to pack into the notebook page */ | 264 /* create a box to pack into the notebook page */ |
264 pagebox = dw_box_new(BOXHORZ, 2); | 265 pagebox = dw_box_new(BOXHORZ, 2); |
265 dw_box_pack_start( notebookbox2, pagebox, 0, 0, TRUE, TRUE, 0); | 266 dw_box_pack_start( notebookbox2, pagebox, 0, 0, TRUE, TRUE, 0); |
266 /* now a status area under this box */ | 267 /* now a status area under this box */ |
281 textbox2 = dw_render_new( 101 ); | 282 textbox2 = dw_render_new( 101 ); |
282 dw_box_pack_start( textboxA, textbox2, 10, 10, TRUE, TRUE, 0); | 283 dw_box_pack_start( textboxA, textbox2, 10, 10, TRUE, TRUE, 0); |
283 dw_window_set_font(textbox2, FIXEDFONT); | 284 dw_window_set_font(textbox2, FIXEDFONT); |
284 /* create horizonal scrollbar */ | 285 /* create horizonal scrollbar */ |
285 hscrollbar = dw_scrollbar_new(FALSE, 100, 50); | 286 hscrollbar = dw_scrollbar_new(FALSE, 100, 50); |
286 dw_box_pack_start( textboxA, hscrollbar, 100, 20, TRUE, FALSE, 0); | 287 dw_box_pack_start( textboxA, hscrollbar, 100, 14, TRUE, FALSE, 0); |
287 | 288 |
288 /* create vertical scrollbar */ | 289 /* create vertical scrollbar */ |
290 vscrollbox = dw_box_new(BOXVERT, 0); | |
289 vscrollbar = dw_scrollbar_new(TRUE, 100, 50); | 291 vscrollbar = dw_scrollbar_new(TRUE, 100, 50); |
290 dw_box_pack_start(pagebox, vscrollbar, 20, 100, FALSE, TRUE, 0); | 292 dw_box_pack_start(vscrollbox, vscrollbar, 14, 100, FALSE, TRUE, 0); |
293 dw_box_pack_start(vscrollbox, 0, 14, 14, FALSE, FALSE, 0); | |
294 dw_box_pack_start(pagebox, vscrollbox, 0, 0, FALSE, TRUE, 0); | |
291 | 295 |
292 text1pm = dw_pixmap_new( textbox1, (font_width*width1)+2, font_height*rows, depth ); | 296 text1pm = dw_pixmap_new( textbox1, (font_width*width1)+2, font_height*rows, depth ); |
293 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth ); | 297 text2pm = dw_pixmap_new( textbox2, font_width*cols, font_height*rows, depth ); |
294 | 298 |
295 dw_messagebox("DWTest", "Width: %d Height: %d\n", font_width, font_height); | 299 dw_messagebox("DWTest", "Width: %d Height: %d\n", font_width, font_height); |