Rev 3225 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3225 | Rev 3319 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | { |
22 | { |
23 | DefineButton(x,y,w,h,id,color_b); |
23 | DefineButton(x,y,w,h,id,color_b); |
24 | WriteText(-strlen(text)*6+w/2+x+1,h/2-3+y,0x80,color_t,text); |
24 | WriteText(-strlen(text)*6+w/2+x+1,h/2-3+y,0x80,color_t,text); |
25 | } |
25 | } |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | void DrawCircle(int x, y, r) |
27 | :void DrawCircle(int x, y, r) |
28 | { |
28 | { |
29 | int i; |
29 | int i; |
30 | float px=0, py=r, ii = r * 3.1415926 * 2; |
30 | float px=0, py=r, ii = r * 3.1415926 * 2; |
31 | FOR (i = 0; i < ii; i++) |
31 | FOR (i = 0; i < ii; i++) |
Line 34... | Line 34... | ||
34 | px = py / r + px; |
34 | px = py / r + px; |
35 | py = -px / r + py; |
35 | py = -px / r + py; |
36 | } |
36 | } |
37 | } |
37 | } |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | void CheckBox(dword x,y,w,h, bt_id, text, graph_color, text_color, is_checked) |
39 | :void CheckBox(dword x,y,w,h, bt_id, text, graph_color, text_color, is_checked) |
40 | { |
40 | { |
41 | DefineButton(x-1, y-1, strlen(text)*6 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, graph_color); |
41 | DefineButton(x-1, y-1, strlen(text)*6 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, graph_color); |
42 | WriteText(x+w+10, h / 2 + y -3, 0x80, text_color, text); |
42 | WriteText(x+w+10, h / 2 + y -3, 0x80, text_color, text); |
43 | DrawRectangle(x, y, w, h, graph_color); |
43 | DrawRectangle(x, y, w, h, graph_color); |
Line 58... | Line 58... | ||
58 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
58 | DrawRectangle3D(x+1, y+1, w-2, h-2, 0xDDDddd, 0xffffff); |
59 | DrawBar(x+2, y+2, w-3, h-3, 0xffffff); |
59 | DrawBar(x+2, y+2, w-3, h-3, 0xffffff); |
60 | } |
60 | } |
61 | } |
61 | } |
Line 62... | Line 62... | ||
62 | 62 | ||
63 | void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent, status_text) |
63 | :void DrawProgressBar(dword st_x, st_y, st_w, st_h, col_fon, col_border, col_fill, col_text, progress_percent, status_text) |
64 | { |
64 | { |
65 | int progress_w; |
65 | int progress_w; |
Line 66... | Line 66... | ||
66 | static int fill_old; |
66 | static int fill_old; |