Subversion Repositories Kolibri OS

Rev

Rev 8185 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8185 Rev 8188
Line 18... Line 18...
18
#define WIN_W 640
18
#define WIN_W 640
19
#define WIN_H 563
19
#define WIN_H 563
Line 20... Line 20...
20
 
20
 
21
uint32_t wheels;
21
uint32_t wheels;
22
char* title = "Boxlib example";
-
 
23
int win_bg_color = 0x858585;
22
char* title = "Boxlib example";
24
scrollbar scroll = {15, WIN_W - 26, WIN_H - 29, 0, 0, 2, 215, 15, 0,0x707070,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
23
scrollbar scroll = {15, WIN_W - 26, WIN_H - 29, 0, 0, 2, 215, 15, 0,0x707070,0xD2CED0,0x555555,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
Line -... Line 24...
-
 
24
progressbar pg = {0, 10, 10, 270, 35, 1, 0, 200, 0xB4B4B4, 0x2728FF, 0xA9A9A9};
-
 
25
 
-
 
26
/*
-
 
27
// System colors
-
 
28
struct kolibri_system_colors sys_color;
25
progressbar pg = {0, 10, 10, 270, 35, 1, 0, 200, 0xB4B4B4, 0x2728FF, 0xA9A9A9};
29
*/
26
 
30
 
27
void draw_window(){
31
void draw_window(){
28
        BeginDraw(); 
32
        BeginDraw(); 
29
        DrawWindow(215,100,WIN_W,WIN_H,title,win_bg_color,0x34);
33
        DrawWindow(215,100,WIN_W,WIN_H,title, /* sys_color.work_area */ 0x858585, 0x34);
30
        scrollbar_v_draw(&scroll);
34
        scrollbar_v_draw(&scroll);
31
        progressbar_draw(&pg);
35
        progressbar_draw(&pg);
Line 49... Line 53...
49
 
53
 
50
 
54
 
51
int main()
55
int main()
-
 
56
{
-
 
57
	kolibri_boxlib_init();
52
{
58
	/*
53
	kolibri_boxlib_init();
59
	get_system_colors(&sys_color);
54
	
60
	*/
55
	set_event_mask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
61
	set_event_mask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
56
	while(1)
62
	while(1)
57
	{
63
	{