diff dwtest.c @ 197:f3718165f0b2

Implemented scrollbars and timers on Windows, and added scrollbar to the example application.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 20 Jan 2003 11:08:43 +0000
parents b023d363fc09
children 11b5da6196c2
line wrap: on
line diff
--- a/dwtest.c	Mon Jan 20 09:17:29 2003 +0000
+++ b/dwtest.c	Mon Jan 20 11:08:43 2003 +0000
@@ -19,6 +19,7 @@
      notebookbox1,
      notebookbox2,
      notebook,
+     scrollbar,
      stext,
      pagebox,
      textbox1, textbox2,
@@ -164,6 +165,10 @@
 	dw_box_pack_start( pagebox, textbox2, font_width*width2, font_height*rows, TRUE, TRUE, 4);
 	dw_window_set_font(textbox2, "9.WarpSans");
 
+	scrollbar = dw_scrollbar_new(FALSE, 100, 0);
+	dw_box_pack_start( pagebox, scrollbar, 100, 20, TRUE, FALSE, 0);
+	dw_scrollbar_set_range(scrollbar, 0, 0);
+
 	text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth );
 	text2pm = dw_pixmap_new( textbox2, font_width*width2, font_height*rows, depth );