Box lib filebrowser/ru: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 7: | Line 7: | ||
==Структура file_browser== | ==Структура file_browser== | ||
Описание параметров структуры: | Описание параметров структуры: | ||
< | <syntaxhighlight lang="asm">file_browser: | ||
fb_type equ dword [edi] ;dword | fb_type equ dword [edi] ;dword | ||
fb_size_x equ [edi+4] ;word | fb_size_x equ [edi+4] ;word | ||
Line 66: | Line 66: | ||
fb_draw_panel_selection_flag equ dword [edi+192] ;dword | fb_draw_panel_selection_flag equ dword [edi+192] ;dword | ||
fb_mouse_pos_old equ dword [edi+196] ;dword | fb_mouse_pos_old equ dword [edi+196] ;dword | ||
fb_marked_counter equ dword [edi+200] ;dword</ | fb_marked_counter equ dword [edi+200] ;dword</syntaxhighlight> | ||
*<code>fb_type</code> - тип элемента, если: | *<code>fb_type</code> - тип элемента, если: | ||
**'''0''' - открыть, | **'''0''' - открыть, |
Latest revision as of 20:02, 31 July 2012
Функции
- FileBrowser_draw - рисование элемента
- FileBrowser_mouse - эта функция должна вызываться при вводе информации с мыши
- FileBrowser_key
- version_FileBrowser - версия элемента
Структура file_browser
Описание параметров структуры:
file_browser:
fb_type equ dword [edi] ;dword
fb_size_x equ [edi+4] ;word
fb_start_x equ [edi+6] ;word
fb_size_y equ [edi+8] ;word
fb_start_y equ [edi+10] ;word
fb_icon_size_y equ word [edi+12] ;word
fb_icon_size_x equ word [edi+14] ;word
fb_line_size_x equ word [edi+16] ;word
fb_line_size_y equ word [edi+18] ;word
fb_type_size_x equ word [edi+20] ;word
fb_size_size_x equ word [edi+22] ;word
fb_date_size_x equ word [edi+24] ;word
fb_attributes_size_x equ word [edi+26] ;word
fb_icon_assoc_area equ dword [edi+28] ;dword
fb_icon_raw_area equ dword [edi+32] ;dword
fb_resolution_raw equ dword [edi+36] ;dword
fb_palette_raw equ dword [edi+40] ;dword
fb_directory_path_area equ dword [edi+44] ;dword
fb_file_name_area equ dword [edi+48] ;dword
fb_select_flag equ dword [edi+52] ;dword
fb_background_color equ dword [edi+56] ;dword
fb_select_color equ dword [edi+60] ;dword
fb_seclect_text_color equ dword [edi+64] ;dword
fb_text_color equ dword [edi+68] ;dword
fb_reduct_text_color equ dword [edi+72] ;dword
fb_marked_text_color equ dword [edi+76] ;dword
fb_max_panel_line equ dword [edi+80] ;dword
fb_select_panel_counter equ dword [edi+84] ;dword
fb_folder_block equ dword [edi+88] ;dword
fb_start_draw_line equ dword [edi+92] ;dword
fb_start_draw_cursor_line equ word [edi+96] ;word
fb_folder_data equ dword [edi+98] ;dword
fb_temp_counter equ dword [edi+102] ;dword
fb_file_name_length equ dword [edi+106] ;dword
fb_marked_file equ dword [edi+110] ;dword
fb_extension_size equ dword [edi+114] ;dword
fb_extension_start equ dword [edi+118] ;dword
fb_type_table equ dword [edi+122] ;dword
fb_ini_file_start equ dword [edi+126] ;dword
fb_ini_file_end equ dword [edi+130] ;dword
fb_draw_scroll_bar equ dword [edi+134] ;dword
fb_font_size_y equ word [edi+138] ;dword
fb_font_size_x equ word [edi+140] ;dword
fb_mouse_keys equ dword [edi+142] ;dword
fb_mouse_keys_old equ dword [edi+146] ;dword
fb_mouse_pos equ dword [edi+150] ;dword
fb_mouse_keys_delta equ dword [edi+154] ;dword
fb_mouse_key_delay equ dword [edi+158] ;dword
fb_mouse_keys_tick equ dword [edi+162] ;dword
fb_start_draw_cursor_line_2 equ word [edi+166] ;dword
fb_all_redraw equ dword [edi+168] ;dword
fb_selected_BDVK_adress equ dword [edi+172] ;dword
fb_key_action equ dword [edi+176] ;dword
fb_name_temp_area equ dword [edi+180] ;dword
fb_max_name_temp_size equ dword [edi+184] ;dword
fb_display_name_max_length equ dword [edi+188] ;dword
fb_draw_panel_selection_flag equ dword [edi+192] ;dword
fb_mouse_pos_old equ dword [edi+196] ;dword
fb_marked_counter equ dword [edi+200] ;dword
fb_type
- тип элемента, если:- 0 - открыть,
- 1 - сохранить,
- 2 - выбрать директорию
fb_start_x
- отступ слева (положение по x)fb_start_y
- отступ сверху (положение по y)fb_line_size_y
- высота линииfb_max_panel_line
- максимальное число строк в окнеfb_folder_block
- количество блоков данных входа каталога (БДВК)fb_folder_data
- буфер с информацией о файлахfb_key_action
- код клавиатурного события для функции FileBrowser_key, возможные значения:- 1 - стрелка вниз
- 2 - стрелка вверх
- 3 - PageDown
- 4 - PageUp
- 5 - Home
- 6 - End
- 7 - Enter
- 8 - Insert (Mark)
- 9 - Mark All
- 10 - Unmark All
- 11 - Invert Mark