Rev 7491 | Rev 7806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7491 | Rev 7658 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #define WIN_DIALOG_W 380 |
1 | #define WIN_DIALOG_W 380 |
2 | #define WIN_DIALOG_H 85 |
2 | #define WIN_DIALOG_H 100 |
3 | #define PR_LEFT 14 |
3 | #define PR_LEFT 14 |
4 | #define PR_TOP 28 |
4 | #define PR_TOP 32 |
5 | #define PR_W WIN_DIALOG_W-PR_LEFT-PR_LEFT |
5 | #define PR_W WIN_DIALOG_W-PR_LEFT-PR_LEFT |
6 | #define PR_H 14 |
6 | #define PR_H 18 |
Line 7... | Line 7... | ||
7 | 7 | ||
8 | proc_info Dialog_Form; |
8 | proc_info Dialog_Form; |
9 | progress_bar copy_bar = {0,PR_LEFT,PR_TOP,PR_W,PR_H,0,0,1,0xFFFFFF,0x00FF00,0x555555}; |
9 | progress_bar copy_bar = {0,PR_LEFT,PR_TOP,PR_W,PR_H,0,0,1,0xFFFFFF,0x00FF00,0x555555}; |
Line 42... | Line 42... | ||
42 | 42 | ||
Line 43... | Line 43... | ||
43 | case evReDraw: |
43 | case evReDraw: |
44 | DefineAndDrawWindow(Form.left+Form.width-200,Form.top+90,WIN_DIALOG_W+9,skin_height+WIN_DIALOG_H,0x34,system.color.work,title,0); |
44 | DefineAndDrawWindow(Form.left+Form.width-200,Form.top+90,WIN_DIALOG_W+9,skin_height+WIN_DIALOG_H,0x34,system.color.work,title,0); |
45 | GetProcessInfo(#Dialog_Form, SelfInfo); |
45 | GetProcessInfo(#Dialog_Form, SelfInfo); |
46 | DrawCaptButtonSmallText(WIN_DIALOG_W-PR_LEFT-80, PR_TOP+PR_H+6, 80,22, 2, |
46 | DrawCaptButton(WIN_DIALOG_W-PR_LEFT-101, PR_TOP+PR_H+6, 100,26, 2, |
47 | system.color.work_button, system.color.work_button_text, T_ABORT_WINDOW_BUTTON); |
47 | system.color.work_button, system.color.work_button_text, T_ABORT_WINDOW_BUTTON); |
Line 48... | Line 48... | ||
48 | 48 | ||
49 | DrawRectangle3D(PR_LEFT-1, PR_TOP-1, PR_W+1, PR_H+1, system.color.work_dark, system.color.work_light); |
49 | DrawRectangle3D(PR_LEFT-1, PR_TOP-1, PR_W+1, PR_H+1, system.color.work_dark, system.color.work_light); |
50 | //copying.draw_wrapper(); |
50 | //copying.draw_wrapper(); |
Line 63... | Line 63... | ||
63 | copy_bar.value++; |
63 | copy_bar.value++; |
64 | return; |
64 | return; |
65 | } |
65 | } |
66 | DisplayOperationForm(); |
66 | DisplayOperationForm(); |
67 | DrawBar(PR_LEFT, PR_TOP-14, WIN_DIALOG_W-PR_LEFT, 10, system.color.work); |
67 | DrawBar(PR_LEFT, PR_TOP-20, WIN_DIALOG_W-PR_LEFT, 15, system.color.work); |
68 | WriteText(PR_LEFT, PR_TOP-14, 0x80, system.color.work_text, filename); |
68 | WriteText(PR_LEFT, PR_TOP-20, 0x90, system.color.work_text, filename); |
69 | 69 | ||
Line 70... | Line 70... | ||
70 | progressbar_draw stdcall (#copy_bar); |
70 | progressbar_draw stdcall (#copy_bar); |
71 | progressbar_progress stdcall (#copy_bar); |
71 | progressbar_progress stdcall (#copy_bar); |
72 | //copy_bar.value++; |
72 | //copy_bar.value++; |
73 | //pause(1); |
73 | //pause(1); |
74 | //copying.draw_progress(copy_bar.value*copying.w/copy_bar.max, copy_bar.value, copy_bar.max-copy_bar.value, ""); |
74 | //copying.draw_progress(copy_bar.value*copying.w/copy_bar.max, copy_bar.value, copy_bar.max-copy_bar.value, ""); |
Line 75... | Line 75... | ||
75 | 75 | ||
76 | DrawBar(PR_LEFT, PR_TOP+PR_H+6, 100, 15, system.color.work); |
76 | WriteTextWithBg(PR_LEFT, PR_TOP+PR_H+5, 0xD0, system.color.work_text, |
77 | WriteText(PR_LEFT, PR_TOP+PR_H+6, 0x80, system.color.work_text, sprintf(#param, "%i/%i", copy_bar.value, copy_bar.max)); |
77 | sprintf(#param, "%i/%i", copy_bar.value, copy_bar.max), system.color.work); |
78 | } |
78 | } |