Rev 7450 | Rev 7636 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7450 | Rev 7458 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | x=_x; y=_y; |
65 | x=_x; y=_y; |
Line 66... | Line 66... | ||
66 | 66 | ||
67 | DefineButton(x-1, y-1, strlen(text)*8 + SIZE + 17, SIZE+2, id+BT_HIDE+BT_NOFRAME, 0); |
67 | DefineButton(x-1, y-1, strlen(text)*8 + SIZE + 17, SIZE+2, id+BT_HIDE+BT_NOFRAME, 0); |
68 | WriteTextWithBg(x+SIZE+8, SIZE / 2 + y -7, 0xD0, system.color.work_text, text, system.color.work); |
68 | WriteTextWithBg(x+SIZE+8, SIZE / 2 + y -7, 0xD0, system.color.work_text, text, system.color.work); |
- | 69 | DrawRectangle(x, y, SIZE, SIZE, system.color.work_graph); |
|
- | 70 | if (disabled) |
|
- | 71 | { |
|
- | 72 | DrawRectangle(x+1, y+1, SIZE-2, SIZE-2, 0xffffff); |
|
- | 73 | DrawBar(x+2, y+2, SIZE-3, SIZE-3, 0xCCCccc); |
|
69 | DrawRectangle(x, y, SIZE, SIZE, system.color.work_graph); |
74 | } |
70 | if (checked == 0) |
75 | else if (checked == 0) |
71 | { |
76 | { |
72 | DrawRectangle3D(x+1, y+1, SIZE-2, SIZE-2, 0xDDDddd, 0xffffff); |
77 | DrawRectangle3D(x+1, y+1, SIZE-2, SIZE-2, 0xDDDddd, 0xffffff); |
73 | DrawBar(x+2, y+2, SIZE-3, SIZE-3, 0xffffff); |
78 | DrawBar(x+2, y+2, SIZE-3, SIZE-3, 0xffffff); |
74 | } |
79 | } |
75 | else if (checked == 1) |
80 | else if (checked == 1) |
76 | { |
- | |
77 | DrawWideRectangle(x+1, y+1, SIZE-1, SIZE-1, 2, 0xffffff); |
81 | { |
78 | _PutImage(x+1, y+1, 13, 13, #checkbox_flag); |
82 | _PutImage(x+1, y+1, 13, 13, #checkbox_flag); |
79 | } |
- | |
80 | else if (checked == 2) //not active |
- | |
81 | { |
- | |
82 | DrawWideRectangle(x+1, y+1, SIZE-1, SIZE-1, 2, 0xffffff); |
- | |
83 | DrawBar(x+3, y+3, SIZE-5, SIZE-5, 0x888888); |
- | |
84 | } |
83 | } |
85 | DrawRectangle3D(x-1,y-1,SIZE+2,SIZE+2,system.color.work_dark,system.color.work_light); |
84 | DrawRectangle3D(x-1,y-1,SIZE+2,SIZE+2,system.color.work_dark,system.color.work_light); |
Line 86... | Line 85... | ||
86 | } |
85 | } |
87 | 86 |