2015-07-24 20:15:43 +02:00
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
?define WINDOW_TITLE_PROPERTIES "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢠"
|
|
|
|
|
?define BTN_CLOSE "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define PR_T_NAME "<EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define PR_T_DEST "<EFBFBD><EFBFBD>ᯮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define PR_T_SIZE "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define SET_3 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define SET_4 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define SET_5 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
|
|
|
|
?define SET_6 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "
|
|
|
|
|
?define SET_7 " <20><><EFBFBD><EFBFBD><EFBFBD>: "
|
|
|
|
|
?define PR_T_CONTAINS "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ন<EFBFBD>: "
|
|
|
|
|
?define FLAGS " <20><><EFBFBD>ਡ<EFBFBD><E0A8A1><EFBFBD> "
|
|
|
|
|
?define PR_T_HIDDEN "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define PR_T_SYSTEM "<EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define PR_T_ONLY_READ "<EFBFBD><EFBFBD><EFBFBD>쪮 <20>⥭<EFBFBD><E2A5AD>"
|
|
|
|
|
#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, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xCCCccc };
|
|
|
|
|
|
|
|
|
|
int file_count, dir_count, size_dir;
|
|
|
|
|
char folder_info[200];
|
|
|
|
|
BDVK file_info_general;
|
|
|
|
|
BDVK file_info_dirsize;
|
|
|
|
|
|
2015-08-04 16:36:07 +02:00
|
|
|
|
byte readonly, hidden, System;
|
2015-07-24 20:15:43 +02:00
|
|
|
|
|
|
|
|
|
void properties_dialog()
|
|
|
|
|
{
|
|
|
|
|
byte id;
|
|
|
|
|
byte key;
|
|
|
|
|
proc_info settings_form;
|
|
|
|
|
|
|
|
|
|
IF (active_properties) ExitProcess();
|
|
|
|
|
active_properties=1;
|
|
|
|
|
|
|
|
|
|
SetEventMask(0x27);
|
|
|
|
|
loop() switch(WaitEvent())
|
|
|
|
|
{
|
|
|
|
|
case evButton:
|
|
|
|
|
id=GetButtonID();
|
|
|
|
|
IF (id==1) || (id==10)
|
|
|
|
|
{
|
|
|
|
|
active_properties=0;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evMouse:
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evKey:
|
|
|
|
|
key = GetKey();
|
|
|
|
|
IF (key==27)
|
|
|
|
|
{
|
|
|
|
|
active_properties=0;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
|
|
|
|
EAX=key<<8;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evReDraw:
|
2016-11-23 12:37:13 +01:00
|
|
|
|
DefineAndDrawWindow(Form.left + 150,150,270,285+skin_height,0x34,system.color.work,WINDOW_TITLE_PROPERTIES,0;
|
2015-07-24 20:15:43 +02:00
|
|
|
|
GetProcessInfo(#settings_form, SelfInfo);
|
2016-01-10 21:02:47 +01:00
|
|
|
|
DrawCaptButton(settings_form.cwidth-70-13, settings_form.cheight-34, 70, 22, 10, 0x288FBD, 0xFFFfff, BTN_CLOSE);
|
2015-07-24 20:15:43 +02:00
|
|
|
|
}
|
|
|
|
|
}
|