Rev 6193 | Rev 6640 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6193 | Rev 6278 | ||
---|---|---|---|
Line 135... | Line 135... | ||
135 | 135 | ||
136 | DrawBar(0,0, Form.cwidth,TOPPANELH, system.color.work); |
136 | DrawBar(0,0, Form.cwidth,TOPPANELH, system.color.work); |
137 | DrawBar(0,TOPPANELH, Form.cwidth,1, system.color.work_graph); |
137 | DrawBar(0,TOPPANELH, Form.cwidth,1, system.color.work_graph); |
138 | WriteText(6, 6, 0x90, system.color.work_text, SIZE_TEXT); |
138 | WriteText(6, 6, 0x90, system.color.work_text, SIZE_TEXT); |
139 | WriteText(edit_disk_size.left + edit_disk_size.width + 12, 6, 0x90, system.color.work_text, "MB."); |
- | |
140 | edit_box_draw stdcall (#edit_disk_size); |
139 | WriteText(edit_disk_size.left + edit_disk_size.width + 12, 6, 0x90, system.color.work_text, "MB."); |
141 | EditBox(#edit_disk_size); |
140 | DrawEditBox(#edit_disk_size); |
142 | for (i=0, x=6; i<2; i++, x+=strlen(but_text[i])*6+37) |
141 | for (i=0, x=6; i<2; i++, x+=strlen(but_text[i])*6+37) |
143 | { |
142 | { |
144 | DefineButton(x,29, strlen(but_text[i])*6+28,19, 10+i, system.color.work_button); |
143 | DefineButton(x,29, strlen(but_text[i])*6+28,19, 10+i, system.color.work_button); |
145 | _PutImage(x+3,32, 14,14, i*14*14*3+#icons); |
144 | _PutImage(x+3,32, 14,14, i*14*14*3+#icons); |
Line 153... | Line 152... | ||
153 | 152 | ||
154 | 153 | ||
155 | void GetSizeDisk() |
154 | void GetSizeDisk() |
156 | { |
155 | { |
157 | int fr; |
156 | int fr; |
158 | fr = GetFreeRAM() / 5; |
157 | fr = GetFreeRAM() / 5 * 2; |
159 | fr = itoa(fr / 2048); |
158 | fr = itoa(fr / 2048); |
160 | strcpy(#new_disk_size, fr); |
159 | strcpy(#new_disk_size, fr); |
161 | edit_disk_size.size = edit_disk_size.pos = strlen(#new_disk_size); |
160 | edit_disk_size.size = edit_disk_size.pos = strlen(#new_disk_size); |