Subversion Repositories Kolibri OS

Rev

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

Rev 6930 Rev 7278
Line 50... Line 50...
50
	if (id) DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
50
	if (id) DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
51
	WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,0x333333,text);
51
	WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,0x333333,text);
52
}
52
}
53
 
53
 
Line 54... Line -...
54
int DrawFlatButton(dword x, y, id, text)
-
 
55
{
-
 
56
	int padding_w = 15;
-
 
57
	int width = strlen(text) * 8 + padding_w + padding_w;
-
 
58
	int height = 25;
-
 
59
	if (id) DefineButton(x+1,y+1,width-2,height-2,id,system.color.work_button);
-
 
60
	WriteText(x+padding_w,height/2+y-6,0x90,system.color.work_button_text,text);
-
 
61
	return width + padding_w;
-
 
62
}
-
 
63
 
-
 
64
 
-
 
65
void DrawFilledBar(dword x, y, w, h)
54
void DrawFilledBar(dword x, y, w, h)
66
{
55
{
67
	int i, fill_h;
56
	int i, fill_h;
68
	if (h <= 14) fill_h = h; else fill_h = 14;
57
	if (h <= 14) fill_h = h; else fill_h = 14;
69
	for (i=0; i
58
	for (i=0; i
Line 75... Line 64...
75
{
64
{
76
	int but_x;
65
	int but_x;
77
	int popin_x = files.w - popin_w / 2 + files.x ;
66
	int popin_x = files.w - popin_w / 2 + files.x ;
78
	DrawPopup(popin_x, 160, popin_w, 95, 1, system.color.work, col_graph);
67
	DrawPopup(popin_x, 160, popin_w, 95, 1, system.color.work, col_graph);
79
	but_x = DrawFlatButton(popin_x+23, 215, POPUP_BTN1, b1_text);
68
	but_x = DrawStandartCaptButton(popin_x+23, 215, POPUP_BTN1, b1_text);
80
	DrawFlatButton(popin_x+23 + but_x, 215, POPUP_BTN2, b2_text);
69
	DrawStandartCaptButton(popin_x+23 + but_x, 215, POPUP_BTN2, b2_text);
81
}
70
}
82
>
71
>
83
72