Subversion Repositories Kolibri OS

Rev

Rev 7226 | Rev 7806 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7225 leency 1
 
2
#define TAB_HEIGHT 28
3
4
 
5
{
6
	int active_tab;
7614 leency 7
	int x,y,w,h;
7225 leency 8
	void draw_button();
9
	int click();
10
	void draw_wrapper();
11
};
12
13
 
14
{
15
	DrawRectangle(x,y+TAB_HEIGHT,w-1,h-TAB_HEIGHT, system.color.work_graph);
7614 leency 16
	DrawRectangle(x+1,y+1+TAB_HEIGHT,w-3,h-2-TAB_HEIGHT, system.color.work_light);
17
}
7225 leency 18
19
 
7226 leency 20
{
7225 leency 21
	dword col_bg, col_text;
22
	dword ww=strlen(text)*8, hh=TAB_HEIGHT;
23
24
 
25
	{
26
		col_bg=0xE44C9C;
27
		col_text=system.color.work_text;
7614 leency 28
	}
7225 leency 29
	else
30
	{
31
		col_bg=0xC3A1B7;
32
		col_text= MixColors(system.color.work, system.color.work_text, 120);
7614 leency 33
	}
7225 leency 34
	DefineHiddenButton(xx-2,y, ww-1+4,hh-1, but_id);
7614 leency 35
	WriteText(xx, y+6, 0x90, col_text, text);
7226 leency 36
	DrawBar(xx, y+hh-3, ww, 3, col_bg);
37
	//DrawStandartCaptButton(xx, y, but_id, text); //GetFreeButtonId()
7614 leency 38
}
7225 leency 39
40
 
41
{
42
	if (N==active_tab) return false;
43
	active_tab = N;
44
	return true;
45
}
46