Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
202:9f87ad1572eb | 203:e0beea487e8f |
---|---|
165 dw_box_pack_start( pagebox, textbox2, font_width*width2, font_height*rows, TRUE, TRUE, 4); | 165 dw_box_pack_start( pagebox, textbox2, font_width*width2, font_height*rows, TRUE, TRUE, 4); |
166 dw_window_set_font(textbox2, "9.WarpSans"); | 166 dw_window_set_font(textbox2, "9.WarpSans"); |
167 | 167 |
168 scrollbar = dw_scrollbar_new(FALSE, 100, 0); | 168 scrollbar = dw_scrollbar_new(FALSE, 100, 0); |
169 dw_box_pack_start( pagebox, scrollbar, 100, 20, TRUE, FALSE, 0); | 169 dw_box_pack_start( pagebox, scrollbar, 100, 20, TRUE, FALSE, 0); |
170 dw_scrollbar_set_range(scrollbar, 0); | 170 dw_scrollbar_set_range(scrollbar, 100, 50); |
171 dw_scrollbar_set_pos(scrollbar, 10); | |
171 | 172 |
172 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth ); | 173 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth ); |
173 text2pm = dw_pixmap_new( textbox2, font_width*width2, font_height*rows, depth ); | 174 text2pm = dw_pixmap_new( textbox2, font_width*width2, font_height*rows, depth ); |
174 | 175 |
175 dw_color_foreground_set(DW_CLR_WHITE); | 176 dw_color_foreground_set(DW_CLR_WHITE); |