Rev 4846 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4846 | Rev 5463 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | } |
42 | } |
Line 43... | Line 43... | ||
43 | 43 | ||
44 | :void CheckBox(dword x,y,w,h, bt_id, text, graph_color, text_color, is_checked) |
44 | :void CheckBox(dword x,y,w,h, bt_id, text, graph_color, text_color, is_checked) |
45 | { |
45 | { |
46 | DefineButton(x-1, y-1, strlen(text)*6 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, graph_color); |
46 | DefineButton(x-1, y-1, strlen(text)*6 + w + 17, h+2, bt_id+BT_HIDE+BT_NOFRAME, graph_color); |
47 | WriteText(x+w+10, h / 2 + y -3, 0x80, text_color, text); |
47 | WriteText(x+w+8, h / 2 + y -3, 0x80, text_color, text); |
48 | DrawRectangle(x, y, w, h, graph_color); |
48 | DrawRectangle(x, y, w, h, graph_color); |
49 | if (is_checked == 1) |
49 | if (is_checked == 1) |
50 | { |
50 | { |
51 | DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff); |
51 | DrawRectangle(x+1, y+1, w-2, h-2, 0xffffff); |