Subversion Repositories Kolibri OS

Rev

Rev 7806 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7806 Rev 9602
Line 47... Line 47...
47
	dword value_text = itoa(value);
47
	dword value_text = itoa(value);
Line 48... Line 48...
48
 
48
 
49
	check_values();
49
	check_values();
Line 50... Line 50...
50
	x=_x; y=_y;
50
	x=_x; y=_y;
51
 
51
 
Line 52... Line 52...
52
	DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, sc.work_graph);
52
	DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, sc.line);
53
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff);
53
	DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff);
54
 
54
 
55
	if (disabled)
55
	if (disabled)
56
	{
56
	{
57
		DrawRectangle(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xffffff);
57
		DrawRectangle(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xffffff);
58
		DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xCCCccc);
58
		DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xCCCccc);
59
		text_col = sc.work_graph;
59
		text_col = sc.line;
60
	}
60
	}
61
	else 
61
	else 
Line 67... Line 67...
67
	WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text);
67
	WriteText( -strlen(value_text)+3*8 + x+6, SIZE / 2 + y -6, 0x90, 0x333333, value_text);
Line 68... Line 68...
68
 
68
 
69
	DrawCaptButton(VALUE_FIELD_W + x + 1,    y, SIZE, SIZE, id_inc, sc.button, sc.button_text, "+");
69
	DrawCaptButton(VALUE_FIELD_W + x + 1,    y, SIZE, SIZE, id_inc, sc.button, sc.button_text, "+");
70
	DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, id_dec, sc.button, sc.button_text, "-");
70
	DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, id_dec, sc.button, sc.button_text, "-");
71
	WriteTextWithBg(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, text_col, text, sc.work);
71
	WriteTextWithBg(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, text_col, text, sc.work);
72
	DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,sc.work_dark,sc.work_light);
72
	DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,sc.dark,sc.light);
Line 73... Line 73...
73
}
73
}
74
 
74
 
75
:void more_less_box::redraw()
75
:void more_less_box::redraw()