Subversion Repositories Kolibri OS

Rev

Rev 7225 | Rev 7614 | 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 x,y,w,h;
7
	int active_tab;
8
	int c;
7226 leency 9
	void draw_button();
7225 leency 10
	int click();
11
	void draw_wrapper();
12
};
13
14
 
15
{
16
	dword color_light = MixColors(system.color.work, 0xFFFfff, 40);
17
	dword color_content = MixColors(system.color.work, 0xFFFfff, 120);
18
	dword color_light_border = MixColors(system.color.work, system.color.work_graph, 120);
19
20
 
21
	DrawBar(x, y, w, h, color_content); //0xF3F3F3
22
	DrawRectangle3D(x, y, w-1, h-1, color_light, color_content); //0xF3F3F3
23
24
 
25
26
 
27
	DrawBar(x, y+TAB_HEIGHT, w, 1, color_light);
28
7226 leency 29
 
30
}
7225 leency 31
32
 
7226 leency 33
{
7225 leency 34
	dword col_bg, col_text;
35
	dword ww=strlen(text)*8, hh=TAB_HEIGHT;
36
37
 
38
	{
39
		col_bg=0xE44C9C;
40
		col_text=0x000000;
41
	}
42
	else
43
	{
44
		col_bg=0xC3A1B7;
45
		col_text=0x333333;
46
	}
47
	DefineHiddenButton(xx,y, ww-1,hh-1, but_id);
7226 leency 48
	WriteText(xx, y+6, 0x90, col_text, text);
49
	DrawBar(xx, y+hh-3, ww, 3, col_bg);
50
}
7225 leency 51
52
 
53
{
54
	if (N==active_tab) return false;
55
	active_tab = N;
56
	return true;
57
}
58