Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
196:3dc60d60007f | 197:f3718165f0b2 |
---|---|
17 lbbox, | 17 lbbox, |
18 notebookbox, | 18 notebookbox, |
19 notebookbox1, | 19 notebookbox1, |
20 notebookbox2, | 20 notebookbox2, |
21 notebook, | 21 notebook, |
22 scrollbar, | |
22 stext, | 23 stext, |
23 pagebox, | 24 pagebox, |
24 textbox1, textbox2, | 25 textbox1, textbox2, |
25 buttonbox; | 26 buttonbox; |
26 | 27 |
161 dw_window_set_font(textbox1, "9.WarpSans"); | 162 dw_window_set_font(textbox1, "9.WarpSans"); |
162 | 163 |
163 textbox2 = dw_render_new( 101 ); | 164 textbox2 = dw_render_new( 101 ); |
164 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); |
165 dw_window_set_font(textbox2, "9.WarpSans"); | 166 dw_window_set_font(textbox2, "9.WarpSans"); |
167 | |
168 scrollbar = dw_scrollbar_new(FALSE, 100, 0); | |
169 dw_box_pack_start( pagebox, scrollbar, 100, 20, TRUE, FALSE, 0); | |
170 dw_scrollbar_set_range(scrollbar, 0, 0); | |
166 | 171 |
167 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth ); | 172 text1pm = dw_pixmap_new( textbox1, font_width*width1, font_height*rows, depth ); |
168 text2pm = dw_pixmap_new( textbox2, font_width*width2, font_height*rows, depth ); | 173 text2pm = dw_pixmap_new( textbox2, font_width*width2, font_height*rows, depth ); |
169 | 174 |
170 dw_color_foreground_set(DW_CLR_WHITE); | 175 dw_color_foreground_set(DW_CLR_WHITE); |