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