Subversion Repositories Kolibri OS

Rev

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

Rev 5532 Rev 5674
Line 43... Line 43...
43
 
43
 
Line 44... Line 44...
44
void DrawFlatButton(dword x,y,width,height,id,color,text)
44
void DrawFlatButton(dword x,y,width,height,id,color,text)
45
{
45
{
46
	int fill_h;
46
	int fill_h;
47
	DrawRectangle(x,y,width,height,sc.work_graph);
47
	DrawRectangle(x,y,width,height,system.color.work_graph);
48
	DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,col_padding);
48
	DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,col_padding);
49
	PutPixel(x+width-1, y+1, col_padding);
49
	PutPixel(x+width-1, y+1, col_padding);
50
	if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3);
50
	if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3);
51
	IF (id<>0)	DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
51
	IF (id<>0)	DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
52
	WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,sc.work_text,text);
52
	WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,system.color.work_text,text);
53
}
53
}
Line 54... Line 54...
54
 
54
 
55
void DrawFilledBar(dword x, y, w, h)
55
void DrawFilledBar(dword x, y, w, h)
56
{
56
{
Line 63... Line 63...
63
void ShowMessage(dword message, pause_duration)
63
void ShowMessage(dword message, pause_duration)
64
{
64
{
65
	int form_x=files.w-220/2+files.x;
65
	int form_x=files.w-220/2+files.x;
66
	int form_y=160;
66
	int form_y=160;
67
	DrawPopup(form_x,form_y,220,80,1,sc.work,sc.work_graph);
67
	DrawPopup(form_x,form_y,220,80,1,system.color.work,system.color.work_graph);
68
	WriteText(-strlen(message)*3+110+form_x,80/2-4+form_y,0x80,sc.work_text,message);
68
	WriteText(-strlen(message)*3+110+form_x,80/2-4+form_y,0x80,system.color.work_text,message);
69
	pause(pause_duration);
69
	pause(pause_duration);
70
	if (pause_duration) List_ReDraw();
70
	if (pause_duration) List_ReDraw();
71
}
71
}
72
>
72
>