Rev 5514 | Rev 5576 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5514 | Rev 5554 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | int file_count, dir_count, size_dir; |
42 | int file_count, dir_count, size_dir; |
43 | char folder_info[200]; |
43 | char folder_info[200]; |
44 | BDVK file_info_general; |
44 | BDVK file_info_general; |
45 | BDVK file_info_dirsize; |
45 | BDVK file_info_dirsize; |
Line -... | Line 46... | ||
- | 46 | ||
- | 47 | void SetProperties(byte id) |
|
- | 48 | { |
|
- | 49 | if (selected_count) return; |
|
- | 50 | else |
|
- | 51 | { |
|
- | 52 | if (id==20) file_info_general.readonly ^= 1; |
|
- | 53 | if (id==21) file_info_general.hidden ^= 1; |
|
- | 54 | if (id==22) file_info_general.system ^= 1; |
|
- | 55 | SetFileInfo(#file_path, #file_info_general); |
|
- | 56 | } |
|
Line 46... | Line 57... | ||
46 | 57 | } |
|
47 | 58 | ||
48 | void GetSizeDir(dword way) |
59 | void GetSizeDir(dword way) |
49 | { |
60 | { |
Line 140... | Line 151... | ||
140 | loop() switch(WaitEvent()) |
151 | loop() switch(WaitEvent()) |
141 | { |
152 | { |
142 | case evButton: |
153 | case evButton: |
143 | id=GetButtonID(); |
154 | id=GetButtonID(); |
144 | IF (id==1) || (id==10) ExitProcess(); |
155 | IF (id==1) || (id==10) ExitProcess(); |
- | 156 | if (id==20) SetProperties(id); |
|
- | 157 | if (id==21) SetProperties(id); |
|
- | 158 | if (id==22) SetProperties(id); |
|
- | 159 | DrawPropertiesCheckBoxes(); |
|
145 | break; |
160 | break; |
Line 146... | Line 161... | ||
146 | 161 | ||
147 | case evMouse: |
162 | case evMouse: |
148 | edit_box_mouse stdcall (#file_name_ed); |
163 | edit_box_mouse stdcall (#file_name_ed); |