Subversion Repositories Kolibri OS

Rev

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

Rev 4042 Rev 4076
Line 7... Line 7...
7
 
7
 
8
void ShowMessage(dword message, pause_duration)
8
void ShowMessage(dword message, pause_duration)
9
{
9
{
10
	int form_x=files.w-220/2+files.x;
10
	int form_x=files.w-220/2+files.x;
11
	int form_y=160;
11
	int form_y=160;
12
	DrawPopup(form_x,form_y,220,80,1,col_work,col_border);
12
	DrawPopup(form_x,form_y,220,80,1,sc.work,sc.work_graph);
13
	WriteText(-strlen(message)*3+110+form_x,80/2-4+form_y,0x80,0,message);
13
	WriteText(-strlen(message)*3+110+form_x,80/2-4+form_y,0x80,sc.work_text,message);
14
	pause(pause_duration);
14
	pause(pause_duration);
15
	if (pause_duration) List_ReDraw();
15
	if (pause_duration) List_ReDraw();
Line 16... Line 16...
16
}
16
}
Line 58... Line 58...
58
}
58
}
Line 59... Line 59...
59
 
59
 
60
void DrawFlatButton(dword x,y,width,height,id,color,text)
60
void DrawFlatButton(dword x,y,width,height,id,color,text)
61
{
61
{
62
	int fill_h;
62
	int fill_h;
63
	DrawRectangle(x,y,width,height,col_border);
63
	DrawRectangle(x,y,width,height,sc.work_graph);
64
	DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,col_padding);
64
	DrawRectangle3D(x+1,y+1,width-2,height-2,0xFEFEFE,col_padding);
65
	PutPixel(x+width-1, y+1, col_work);
65
	PutPixel(x+width-1, y+1, col_padding);
66
	if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3);
66
	if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3);
67
	IF (id<>0)	DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
67
	IF (id<>0)	DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF);
68
	WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,0,text);
68
	WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,sc.work_text,text);
Line 69... Line 69...
69
}
69
}
70
 
70
 
71
void DrawFilledBar(dword x, y, w, h)
71
void DrawFilledBar(dword x, y, w, h)