1,10 → 1,10 |
|
#define WIN_DIALOG_W 380 |
#define WIN_DIALOG_H 85 |
#define WIN_DIALOG_H 100 |
#define PR_LEFT 14 |
#define PR_TOP 28 |
#define PR_TOP 32 |
#define PR_W WIN_DIALOG_W-PR_LEFT-PR_LEFT |
#define PR_H 14 |
#define PR_H 18 |
|
proc_info Dialog_Form; |
progress_bar copy_bar = {0,PR_LEFT,PR_TOP,PR_W,PR_H,0,0,1,0xFFFFFF,0x00FF00,0x555555}; |
44,7 → 44,7 |
case evReDraw: |
DefineAndDrawWindow(Form.left+Form.width-200,Form.top+90,WIN_DIALOG_W+9,skin_height+WIN_DIALOG_H,0x34,system.color.work,title,0); |
GetProcessInfo(#Dialog_Form, SelfInfo); |
DrawCaptButtonSmallText(WIN_DIALOG_W-PR_LEFT-80, PR_TOP+PR_H+6, 80,22, 2, |
DrawCaptButton(WIN_DIALOG_W-PR_LEFT-101, PR_TOP+PR_H+6, 100,26, 2, |
system.color.work_button, system.color.work_button_text, T_ABORT_WINDOW_BUTTON); |
|
DrawRectangle3D(PR_LEFT-1, PR_TOP-1, PR_W+1, PR_H+1, system.color.work_dark, system.color.work_light); |
65,8 → 65,8 |
return; |
} |
DisplayOperationForm(); |
DrawBar(PR_LEFT, PR_TOP-14, WIN_DIALOG_W-PR_LEFT, 10, system.color.work); |
WriteText(PR_LEFT, PR_TOP-14, 0x80, system.color.work_text, filename); |
DrawBar(PR_LEFT, PR_TOP-20, WIN_DIALOG_W-PR_LEFT, 15, system.color.work); |
WriteText(PR_LEFT, PR_TOP-20, 0x90, system.color.work_text, filename); |
|
progressbar_draw stdcall (#copy_bar); |
progressbar_progress stdcall (#copy_bar); |
74,6 → 74,6 |
//pause(1); |
//copying.draw_progress(copy_bar.value*copying.w/copy_bar.max, copy_bar.value, copy_bar.max-copy_bar.value, ""); |
|
DrawBar(PR_LEFT, PR_TOP+PR_H+6, 100, 15, system.color.work); |
WriteText(PR_LEFT, PR_TOP+PR_H+6, 0x80, system.color.work_text, sprintf(#param, "%i/%i", copy_bar.value, copy_bar.max)); |
WriteTextWithBg(PR_LEFT, PR_TOP+PR_H+5, 0xD0, system.color.work_text, |
sprintf(#param, "%i/%i", copy_bar.value, copy_bar.max), system.color.work); |
} |