1 ;---------------------------------------------------------------------
\r
10 mov [extended_key],1
\r
13 cmp ah,151 ; i - file information
\r
15 cmp ah,152 ; o - application options
\r
16 je check_key_O ;k_option
\r
17 cmp ah,159 ; s - sort mode
\r
19 cmp ah,145 ; w - wallpaper
\r
21 cmp ah,183 ; * - scaling to window
\r
23 cmp ah,139 ; 0 - scaling to window
\r
25 cmp ah,202 ; "-" - zoom minus
\r
27 cmp ah,140 ; "-" - zoom minus
\r
29 cmp ah,206 ; "+" - zoom plus
\r
31 cmp ah,141 ; "+" - zoom plus
\r
33 cmp ah,171 ; "\" - zoom 100%
\r
36 cmp ah,72 ; up arrow
\r
38 cmp ah,80 ; down arrow
\r
40 cmp ah,75 ; left arrow
\r
42 cmp ah,77 ; right arrow
\r
48 je select_menu ;key_alt_down
\r
69 mov [extended_key],0
\r
70 mov [current_key_code],ah
\r
73 ; mov [timer_counter],eax
\r
93 cmp ah,181 ; / - zoom 100%
\r
96 cmp ah,72 ; up arrow
\r
98 cmp ah,80 ; down arrow
\r
100 cmp ah,75 ; left arrow
\r
102 cmp ah,77 ; right arrow
\r
108 cmp ah,183 ; Print Screen - Slides Show
\r
120 ;---------------------------------------------------------------------
\r
124 ;---------------------------------------------------------------------
\r
128 ;---------------------------------------------------------------------
\r
132 ;---------------------------------------------------------------------
\r
136 ;---------------------------------------------------------------------
\r
140 ;---------------------------------------------------------------------
\r
144 ;---------------------------------------------------------------------
\r
149 ;---------------------------------------------------------------------
\r
152 cmp [load_file_number],eax
\r
154 dec [load_file_number]
\r
156 ;----------------------------------------
\r
158 mov eax,[load_directory_pointer]
\r
164 cmp [load_file_number],eax
\r
166 inc [load_file_number]
\r
168 ;----------------------------------------
\r
172 ;----------------------------------------
\r
174 mov eax,[load_directory_pointer]
\r
181 cmp [load_file_number],eax
\r
183 mov [load_file_number],eax
\r
185 imul ebx,[load_file_number],304
\r
187 add ebx,[load_directory_pointer]
\r
190 mov edi,plugin_pach
\r
191 call copy_file_path
\r
193 mov esi,plugin_pach
\r
200 mov [open_file_flag],0
\r
209 call load_directory.copy_dir_path
\r
211 call get_window_param
\r
212 test [window_status],1b
\r
214 mov [no_draw_window],1
\r
216 mov [no_draw_window],0
\r
222 mov al,[old_key_code]
\r
223 mov ah,[current_key_code]
\r
224 mov [old_key_code],ah
\r
226 jne still ;key.extended_key ;still
\r
229 cmp [extended_key],1
\r
235 mov [extended_key],1
\r
240 mov [extended_key],0
\r
241 mov [current_key_code],ah
\r
244 mov ah,[current_key_code]
\r
245 mov [old_key_code],ah
\r
246 jmp key.extended_key
\r
247 ;---------------------------------------------------------------------
\r
249 mov eax,[load_directory_pointer]
\r
250 cmp [eax+4],dword 1
\r
260 cmp eax,1 ; ïåðåðèñîâàòü îêíî ?
\r
262 cmp eax,2 ; íàæàòà êëàâèøà ?
\r
263 je .key ; åñëè äà - íà key
\r
264 cmp eax,3 ; íàæàòà êíîïêà ?
\r
265 je .button ; åñëè äà - íà button
\r
268 ;-------------------------------------------
\r
271 cmp [extended_key],1
\r
277 mov [extended_key],1
\r
286 mov [extended_key],0
\r
287 mov [current_key_code],ah
\r
289 ;-------------------------------------------
\r
291 mov eax,17 ; get id
\r
293 cmp ah,1 ; button id=1 ?
\r
299 ;-------------------------------------------
\r
302 ; add eax,[slide_show_delay] ;500
\r
305 mov eax,[load_directory_pointer]
\r
311 cmp [load_file_number],eax
\r
313 inc [load_file_number]
\r
314 imul ebx,[load_file_number],304
\r
316 add ebx,[load_directory_pointer]
\r
319 mov edi,plugin_pach
\r
320 call copy_file_path
\r
322 mov esi,plugin_pach
\r
327 mov [open_file_flag],0
\r
336 call load_directory.copy_dir_path
\r
338 call get_window_param
\r
339 test [window_status],1b
\r
341 mov [no_draw_window],1
\r
343 mov [no_draw_window],0
\r
350 add eax,[slide_show_delay] ;500
\r
353 ;---------------------------------------------------------------------
\r
355 mov eax,[scroll_bar_data_vertical.ar_offset]
\r
356 mov ebx,scroll_bar_data_vertical.position
\r
368 call draw_scrollbars
\r
370 ;---------------------------------------------------------------------
\r
372 mov ecx,[scroll_bar_data_vertical.ar_offset]
\r
373 mov ebx,scroll_bar_data_vertical.position
\r
374 mov eax,[scroll_bar_data_vertical.max_area]
\r
375 sub eax,[scroll_bar_data_vertical.cur_area]
\r
388 ;---------------------------------------------------------------------
\r
390 mov eax,[scroll_bar_data_horizontal.ar_offset]
\r
391 mov ebx,scroll_bar_data_horizontal.position
\r
402 ;---------------------------------------------------------------------
\r
404 mov ecx,[scroll_bar_data_horizontal.ar_offset]
\r
405 mov ebx,scroll_bar_data_horizontal.position
\r
406 mov eax,[scroll_bar_data_horizontal.max_area]
\r
407 sub eax,[scroll_bar_data_horizontal.cur_area]
\r
421 ; mov ax,[scroll_bar_data_horizontal.size_x]
\r
422 ; sub eax,[scroll_bar_data_horizontal.btn_high]
\r
423 ; sub eax,[scroll_bar_data_horizontal.btn_high]
\r
424 ; sub eax,[scroll_bar_data_horizontal.run_size]
\r
425 ; mov [scroll_bar_data_horizontal.position2],eax
\r
427 ;---------------------------------------------------------------------