diff dwtest.c @ 203:e0beea487e8f

Added the basics for scrollbar thumb size on OS/2, and dw_main_iteration() which runs a message loop until it handles one message and returns. So other languages can run message loops and call this function internally.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 01 Feb 2003 07:05:12 +0000
parents b955228477b3
children f7911991c5df
line wrap: on
line diff
--- a/dwtest.c	Mon Jan 20 20:31:52 2003 +0000
+++ b/dwtest.c	Sat Feb 01 07:05:12 2003 +0000
@@ -167,7 +167,8 @@
 
 	scrollbar = dw_scrollbar_new(FALSE, 100, 0);
 	dw_box_pack_start( pagebox, scrollbar, 100, 20, TRUE, FALSE, 0);
-	dw_scrollbar_set_range(scrollbar, 0);
+	dw_scrollbar_set_range(scrollbar, 100, 50);
+	dw_scrollbar_set_pos(scrollbar, 10);
 
 	text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth );
 	text2pm = dw_pixmap_new( textbox2, font_width*width2, font_height*rows, depth );