Subversion Repositories Kolibri OS

Rev

Rev 5519 | Rev 5542 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5519 Rev 5526
Line 52... Line 52...
52
		DrawBar(x+2, y+2, w-3, h-3, 0xffffff);
52
		DrawBar(x+2, y+2, w-3, h-3, 0xffffff);
53
	} 
53
	} 
54
	else if (is_checked == 1)
54
	else if (is_checked == 1)
55
	{
55
	{
56
		DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff);
56
		DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff);
-
 
57
		DrawRectangle(x+2, y+2, w-4, h-4, 0xffffff);
57
		DrawBar(x+2, y+2, w-3, h-3, graph_color);
58
		DrawBar(x+3, y+3, w-5, h-5, graph_color);
58
	}
59
	}
59
	else if (is_checked == 2) //not active
60
	else if (is_checked == 2) //not active
60
	{
61
	{
61
		DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff);
62
		DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff);
-
 
63
		DrawRectangle(x+2, y+2, w-4, h-4, 0xffffff);
62
		DrawBar(x+2, y+2, w-3, h-3, 0x888888);	
64
		DrawBar(x+3, y+3, w-5, h-5, 0x888888);
63
	}
65
	}
64
}
66
}
Line 65... Line 67...
65
 
67
 
66
:void MoreLessBox(dword x,y,s, bt_id_more, bt_id_less, color_border, color_button, color_text, value, text)
68
:void MoreLessBox(dword x,y,s, bt_id_more, bt_id_less, color_border, color_button, color_text, value, text)
67
{
69
{
68
	#define VALUE_FIELD_W 26;
70
	#define VALUE_FIELD_W 26;
69
	DrawRectangle(x, y, VALUE_FIELD_W, s, color_border);
71
	DrawRectangle(x, y, VALUE_FIELD_W, s, color_border);
70
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, s-2, 0xDDDddd, 0xffffff);
72
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, s-2, 0xDDDddd, 0xffffff);
71
	DrawBar(x+2, y+2, VALUE_FIELD_W-3, s-3, 0xffffff);
73
	DrawBar(x+2, y+2, VALUE_FIELD_W-3, s-3, 0xffffff);
Line 72... Line 74...
72
	WriteText(x+6, s / 2 + y -3, 0x80, color_text, itoa(value));
74
	WriteText(x+6, s / 2 + y -3, 0x80, 0x000000, itoa(value));
73
 
75
 
74
	DrawCaptButton(VALUE_FIELD_W + x + 1,     y, s, s, bt_id_more, color_button, color_text, "+");
76
	DrawCaptButton(VALUE_FIELD_W + x + 1,     y, s, s, bt_id_more, color_button, color_text, "+");
75
	DrawCaptButton(VALUE_FIELD_W + x + s + 2, y, s, s, bt_id_less, color_button, color_text, "-");
77
	DrawCaptButton(VALUE_FIELD_W + x + s + 2, y, s, s, bt_id_less, color_button, color_text, "-");