Rev 6479 | Rev 6524 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6479 | Rev 6516 | ||
---|---|---|---|
Line 85... | Line 85... | ||
85 | 85 | ||
86 | int value = 40; // showed value |
86 | int value = 40; // showed value |
Line 87... | Line 87... | ||
87 | int valuechange = 0; |
87 | int valuechange = 0; |
88 | 88 | ||
89 | // creating GUI using library functions |
89 | // creating GUI using library functions |
90 | kolibri_window *main_window = kolibri_new_window(50, 50, 400, 400, "Scrollbar and progressbar showcase"); |
90 | kolibri_window *main_window = kolibri_new_window(50, 40, 400, 400, "Scrollbar and progressbar showcase"); |
91 | statictext *txt = kolibri_new_statictext_def(X_Y(10,30), "StaticText default 6x9. Use Arrows or PgUp/PgDn"); |
91 | statictext *txt = kolibri_new_statictext_def(X_Y(10, 20), "StaticText default 6x9. Use Arrows or PgUp/PgDn"); |
92 | statictext *txt2 = kolibri_new_statictext(X_Y(10,40), "StaticText 8x16 x2:", CP866, 1, kolibri_color_table.color_work_text, 0); |
92 | statictext *txt2 = kolibri_new_statictext(X_Y(10, 30), "StaticText 8x16 x2:", CP866, 1, kolibri_color_table.color_work_text, 0); |
93 | staticnum *num = kolibri_new_staticnum_def(X_Y(10 + (strlen("StaticText 8x16 x2:") + 2) * 8 * 2, 40), 3, value); |
93 | staticnum *num = kolibri_new_staticnum_def(X_Y(10 + (strlen("StaticText 8x16 x2:") + 2) * 8 * 2, 30), 3, value); |
94 | scrollbar *sbh = kolibri_new_scrollbar(X_Y(30, 300), X_Y(370, 15), 15, 100, 10, value, kolibri_color_table.color_work_area, kolibri_color_table.color_work_button, 0); |
94 | scrollbar *sbh = kolibri_new_scrollbar(X_Y(30, 300), X_Y(370, 5), 15, 100, 10, value, kolibri_color_table.color_work_area, kolibri_color_table.color_work_button, 0); |
Line 95... | Line 95... | ||
95 | scrollbar *sbv = kolibri_new_scrollbar(X_Y(370, 15), X_Y(50, 300), 15, 100, 10, value, kolibri_color_table.color_work_area, kolibri_color_table.color_work_button, 0); |
95 | scrollbar *sbv = kolibri_new_scrollbar(X_Y(370, 15), X_Y(40, 300), 15, 100, 10, value, kolibri_color_table.color_work_area, kolibri_color_table.color_work_button, 0); |
96 | progressbar *pg = kolibri_new_progressbar(0, 100, value, 10, 80, 200, 20); |
96 | progressbar *pg = kolibri_new_progressbar(0, 100, value, 10, 70, 200, 20); |
97 | 97 | ||
98 | kolibri_window_add_element(main_window, KOLIBRI_STATICTEXT, txt); |
98 | kolibri_window_add_element(main_window, KOLIBRI_STATICTEXT, txt); |