#ifdef LANG_RUS ?define WINDOW_TITLE_PROPERTIES "Свойства" ?define BTN_CLOSE "Закрыть" ?define PR_T_NAME "Имя:" ?define PR_T_DEST "Расположение:" ?define PR_T_SIZE "Размер:" ?define SET_3 "Создан" ?define SET_4 "Открыт" ?define SET_5 "Изменен" ?define SET_6 "Файлов: " ?define SET_7 " Папок: " ?define PR_T_CONTAINS "Содержит: " ?define FLAGS " Аттрибуты " ?define PR_T_HIDDEN "Скрытый" ?define PR_T_SYSTEM "Системный" ?define PR_T_ONLY_READ "Только чтение" #elif LANG_EST ?define WINDOW_TITLE_PROPERTIES "Свойства" ?define BTN_CLOSE "Закрыть" ?define PR_T_NAME "Имя:" ?define PR_T_DEST "Расположение:" ?define PR_T_SIZE "Размер:" ?define SET_3 "Создан" ?define SET_4 "Открыт" ?define SET_5 "Изменен" ?define SET_6 "Файлов: " ?define SET_7 " Папок: " ?define PR_T_CONTAINS "Содержит: " ?define FLAGS " Аттрибуты " ?define PR_T_HIDDEN "Скрытый" ?define PR_T_SYSTEM "Системный" ?define PR_T_ONLY_READ "Только чтение" #else ?define WINDOW_TITLE_PROPERTIES "Properties" ?define BTN_CLOSE "Close" ?define PR_T_NAME "Name:" ?define PR_T_DEST "Destination:" ?define PR_T_SIZE "Size:" ?define SET_3 "Created" ?define SET_4 "Opened" ?define SET_5 "Modified" ?define SET_6 "Files: " ?define SET_7 " Folders: " ?define PR_T_CONTAINS "Contains: " ?define FLAGS " Attributes " ?define PR_T_HIDDEN "Hidden" ?define PR_T_SYSTEM "System" ?define PR_T_ONLY_READ "Read-only" #endif dword mouse_ddd2; char path_to_file[4096]="\0"; char file_name2[4096]="\0"; edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2}; edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2}; frame flags_frame = { 0, 280, 10, 83, 106, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc }; byte HIDDEN_chb, SYSTEM_chb, ONLY_READ_chb; int file_count, dir_count, size_dir; char folder_info[200]; BDVK file_info_general; BDVK file_info_dirsize; void GetSizeDir(dword way) { dword dirbuf, fcount, i, filename; char cur_file[4096]; if (isdir(way)) { GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); for (i=0; i", 18, 20, 0xFFFfff, 0); WriteText(50, 13, 0x80, 0x000000, PR_T_NAME); edit_box_draw stdcall (#file_name_ed); WriteText(10, 50, 0x80, 0x000000, PR_T_DEST); edit_box_draw stdcall (#path_to_file_ed); /*WriteText(10, 63, 0x80, 0x000000, SET_3); if (!itdir) { WriteText(10, 78, 0x80, 0x000000, SET_4); WriteText(10, 93, 0x80, 0x000000, SET_5); }*/ WriteText(10, 65, 0x80, 0x000000, PR_T_SIZE); if (!itdir) { WriteText(100, 65, 0x80, 0x000000, ConvertSize(file_info_general.sizelo)); } else { WriteText(10, 80, 0x80, 0x000000, PR_T_CONTAINS); strcpy(#folder_info, SET_6); strcat(#folder_info, itoa(file_count)); strcat(#folder_info, SET_7); strcat(#folder_info, itoa(dir_count)); WriteText(100, 80, 0x80, 0x000000, #folder_info); WriteText(100, 65, 0x80, 0x000000, ConvertSize(size_dir)); } flags_frame.size_x = - flags_frame.start_x * 2 + settings_form.cwidth - 2; flags_frame.font_color = sc.work_text; flags_frame.font_backgr_color = sc.work; flags_frame.ext_col = sc.work_graph; frame_draw stdcall (#flags_frame); DrawPropertiesCheckBoxes(); } } void DrawPropertiesCheckBoxes() { ONLY_READ_chb = TestBit(file_info_general.attr, 0); HIDDEN_chb = TestBit(file_info_general.attr, 1); SYSTEM_chb = TestBit(file_info_general.attr, 2); CheckBox2(22, 120, 20, PR_T_ONLY_READ, ONLY_READ_chb); CheckBox2(22, 142, 21, PR_T_HIDDEN, HIDDEN_chb); CheckBox2(22, 164, 22, PR_T_SYSTEM, SYSTEM_chb); }