Rev 5659 | Rev 5690 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5659 | Rev 5674 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | 43 | ||
44 | dword devbuf; |
44 | dword devbuf; |
45 | char disk_num; |
45 | char disk_num; |
Line 46... | Line -... | ||
46 | char selected; |
- | |
47 | 46 | char selected; |
|
Line 48... | Line 47... | ||
48 | system_colors sc; |
47 | |
49 | proc_info Form; |
48 | proc_info Form; |
50 | 49 | ||
Line 129... | Line 128... | ||
129 | } |
128 | } |
130 | EAX=key<<8; |
129 | EAX=key<<8; |
131 | edit_box_key stdcall(#edit_disk_size); |
130 | edit_box_key stdcall(#edit_disk_size); |
132 | break; |
131 | break; |
133 | case evReDraw: |
132 | case evReDraw: |
134 | sc.get(); |
133 | system.color.get(); |
135 | DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.62",0); |
134 | DefineAndDrawWindow(170,150,314,270,0x74,system.color.work,"Virtual Disk Manager 0.62",0); |
136 | GetProcessInfo(#Form, SelfInfo); |
135 | GetProcessInfo(#Form, SelfInfo); |
137 | if (Form.status_window>2) break; |
136 | if (Form.status_window>2) break; |
Line 138... | Line 137... | ||
138 | 137 | ||
139 | DrawBar(0,0, Form.cwidth,TOPPANELH, sc.work); |
138 | DrawBar(0,0, Form.cwidth,TOPPANELH, system.color.work); |
140 | DrawBar(0,TOPPANELH, Form.cwidth,1, sc.work_graph); |
139 | DrawBar(0,TOPPANELH, Form.cwidth,1, system.color.work_graph); |
141 | WriteText(6, 9, 0x80, sc.work_text, INTRO_TEXT_4); |
140 | WriteText(6, 9, 0x80, system.color.work_text, INTRO_TEXT_4); |
142 | WriteText(edit_disk_size.left + edit_disk_size.width + 8, 9, 0x80, sc.work_text, "MB."); |
141 | WriteText(edit_disk_size.left + edit_disk_size.width + 8, 9, 0x80, system.color.work_text, "MB."); |
143 | edit_box_draw stdcall (#edit_disk_size); |
142 | edit_box_draw stdcall (#edit_disk_size); |
144 | for (i=0, x=6; i<2; i++, x+=strlen(but_text[i])*6+37) |
143 | for (i=0, x=6; i<2; i++, x+=strlen(but_text[i])*6+37) |
145 | { |
144 | { |
146 | DefineButton(x,25, strlen(but_text[i])*6+28,19, 10+i, sc.work_button); |
145 | DefineButton(x,25, strlen(but_text[i])*6+28,19, 10+i, system.color.work_button); |
147 | _PutImage(x+3,28, 14,14, i*14*14*3+#icons); |
146 | _PutImage(x+3,28, 14,14, i*14*14*3+#icons); |
148 | WriteText(x+22,31, 0x80, sc.work_button_text, but_text[i]); |
147 | WriteText(x+22,31, 0x80, system.color.work_button_text, but_text[i]); |
149 | } |
148 | } |
150 | GetDisks(); |
149 | GetDisks(); |
151 | DrawTmpDisks(); |
150 | DrawTmpDisks(); |
152 | } |
151 | } |
Line 208... | Line 207... | ||
208 | char free_ram_text[60]; |
207 | char free_ram_text[60]; |
209 | byte i, real_id; |
208 | byte i, real_id; |
210 | int FreeRAM=GetFreeRAM()/1024; |
209 | int FreeRAM=GetFreeRAM()/1024; |
Line 211... | Line 210... | ||
211 | 210 | ||
212 | DrawBar(0,51, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF); |
211 | DrawBar(0,51, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF); |
213 | DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.work_graph); |
212 | DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, system.color.work_graph); |
214 | DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, sc.work); |
213 | DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, system.color.work); |
215 | strcpy(#free_ram_text, FREE_RAM_TEXT); |
214 | strcpy(#free_ram_text, FREE_RAM_TEXT); |
216 | strcat(#free_ram_text, itoa(FreeRAM)); |
215 | strcat(#free_ram_text, itoa(FreeRAM)); |
217 | strcat(#free_ram_text, " MB"); |
216 | strcat(#free_ram_text, " MB"); |
218 | WriteText(10, Form.cheight-13, 0x80, sc.work_text, #free_ram_text); |
217 | WriteText(10, Form.cheight-13, 0x80, system.color.work_text, #free_ram_text); |
219 | if (disk_num==0) |
218 | if (disk_num==0) |
220 | { |
219 | { |
221 | WriteText(17,65, 0x90, 0x777777, INTRO_TEXT_1); |
220 | WriteText(17,65, 0x90, 0x777777, INTRO_TEXT_1); |
222 | WriteText(17,65+15, 0x90, 0x777777, INTRO_TEXT_2); |
221 | WriteText(17,65+15, 0x90, 0x777777, INTRO_TEXT_2); |