Rev 9301 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9301 | Rev 9602 | ||
---|---|---|---|
Line 146... | Line 146... | ||
146 | DefineAndDrawWindow(170,150,405,290,0x74,sc.work,"Virtual Disk Manager 0.69",0); |
146 | DefineAndDrawWindow(170,150,405,290,0x74,sc.work,"Virtual Disk Manager 0.69",0); |
147 | GetProcessInfo(#Form, SelfInfo); |
147 | GetProcessInfo(#Form, SelfInfo); |
148 | if (Form.status_window&ROLLED_UP) break; |
148 | if (Form.status_window&ROLLED_UP) break; |
Line 149... | Line 149... | ||
149 | 149 | ||
150 | DrawBar(0,0, Form.cwidth,TOPPANELH, sc.work); |
150 | DrawBar(0,0, Form.cwidth,TOPPANELH, sc.work); |
151 | DrawBar(0,TOPPANELH, Form.cwidth,1, sc.work_graph); |
151 | DrawBar(0,TOPPANELH, Form.cwidth,1, sc.line); |
152 | WriteText(6, 9, 0x90, sc.work_text, SIZE_TEXT); |
152 | WriteText(6, 9, 0x90, sc.work_text, SIZE_TEXT); |
153 | DrawRectangle(edit_disk_size.left-1, edit_disk_size.top-1, edit_disk_size.width+2, 23,sc.work_graph); |
153 | DrawRectangle(edit_disk_size.left-1, edit_disk_size.top-1, edit_disk_size.width+2, 23,sc.line); |
154 | edit_box_draw stdcall (#edit_disk_size); |
154 | edit_box_draw stdcall (#edit_disk_size); |
155 | x = 6 + DrawStandartCaptButton(6, 36, 10, T_ADD_DISK); |
155 | x = 6 + DrawStandartCaptButton(6, 36, 10, T_ADD_DISK); |
156 | DrawStandartCaptButton(x, 36, 11, T_DELETE_DISK); |
156 | DrawStandartCaptButton(x, 36, 11, T_DELETE_DISK); |
157 | _PutImage(6+6, 42, 14,14, #icons_btn); |
157 | PutImage(6+6, 42, 14,14, #icons_btn); |
158 | _PutImage(x+6, 42, 14,14, 14*14*3+#icons_btn); |
158 | PutImage(x+6, 42, 14,14, 14*14*3+#icons_btn); |
159 | GetDisks(); |
159 | GetDisks(); |
160 | DrawTmpDisks(); |
160 | DrawTmpDisks(); |
161 | } |
161 | } |
162 | } |
162 | } |
Line 229... | Line 229... | ||
229 | dword selection_color; |
229 | dword selection_color; |
230 | char free_ram_text[60]; |
230 | char free_ram_text[60]; |
231 | byte i; |
231 | byte i; |
Line 232... | Line 232... | ||
232 | 232 | ||
233 | DrawBar(0,TOPPANELH+1, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF); |
233 | DrawBar(0,TOPPANELH+1, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF); |
234 | DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.work_graph); |
234 | DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.line); |
235 | DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, sc.work); |
235 | DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, sc.work); |
236 | sprintf(#free_ram_text, FREE_RAM_TEXT, GetFreeRAM()/1024); |
236 | sprintf(#free_ram_text, FREE_RAM_TEXT, GetFreeRAM()/1024); |
237 | WriteText(10, Form.cheight-20, 0x90, sc.work_text, #free_ram_text); |
237 | WriteText(10, Form.cheight-20, 0x90, sc.work_text, #free_ram_text); |
238 | if (disk_num==0) |
238 | if (disk_num==0) |
Line 249... | Line 249... | ||
249 | if (i>=disk_num) continue; |
249 | if (i>=disk_num) continue; |
250 | DefineButton(disk_pos_x[i], disk_pos_y[i], 80, 40, 20+i, 0xFFFfff); |
250 | DefineButton(disk_pos_x[i], disk_pos_y[i], 80, 40, 20+i, 0xFFFfff); |
251 | WriteText(disk_pos_x[i]+29,disk_pos_y[i]+6, 0x90, 0x222222, #disk_list[i].Item); |
251 | WriteText(disk_pos_x[i]+29,disk_pos_y[i]+6, 0x90, 0x222222, #disk_list[i].Item); |
252 | WriteText(disk_pos_x[i]+30,disk_pos_y[i]+24, 0x80, 0x555555, |
252 | WriteText(disk_pos_x[i]+30,disk_pos_y[i]+24, 0x80, 0x555555, |
253 | ConvertSize(GetDiskSize(disk_list[i].Item[3] - '0'))); |
253 | ConvertSize(GetDiskSize(disk_list[i].Item[3] - '0'))); |
254 | _PutImage(disk_pos_x[i]+9,disk_pos_y[i]+10, 15,9, #disk_icon); |
254 | PutImage(disk_pos_x[i]+9,disk_pos_y[i]+10, 15,9, #disk_icon); |
255 | if (selected==i) { |
255 | if (selected==i) { |
256 | if ( edit_disk_size.flags & ed_focus) |
256 | if ( edit_disk_size.flags & ed_focus) |
257 | selection_color = SELECTION_INACTIVE; |
257 | selection_color = SELECTION_INACTIVE; |
258 | else |
258 | else |
259 | selection_color = SELECTION_ACTIVE; |
259 | selection_color = SELECTION_ACTIVE; |