30,29 → 30,29 |
edit_box_draw dd aEdit_box_draw |
edit_box_key dd aEdit_box_key |
edit_box_mouse dd aEdit_box_mouse |
version_ed dd aVersion_ed |
;version_ed dd aVersion_ed |
|
check_box_draw dd aCheck_box_draw |
check_box_mouse dd aCheck_box_mouse |
version_ch dd aVersion_ch |
;check_box_draw dd aCheck_box_draw |
;check_box_mouse dd aCheck_box_mouse |
;version_ch dd aVersion_ch |
|
option_box_draw dd aOption_box_draw |
option_box_mouse dd aOption_box_mouse |
version_op dd aVersion_op |
;option_box_draw dd aOption_box_draw |
;option_box_mouse dd aOption_box_mouse |
;version_op dd aVersion_op |
|
scrollbar_ver_draw dd aScrollbar_ver_draw |
scrollbar_ver_mouse dd aScrollbar_ver_mouse |
scrollbar_hor_draw dd aScrollbar_hor_draw |
scrollbar_hor_mouse dd aScrollbar_hor_mouse |
version_scrollbar dd aVersion_scrollbar |
;version_scrollbar dd aVersion_scrollbar |
|
dinamic_button_draw dd aDbutton_draw |
dinamic_button_mouse dd aDbutton_mouse |
version_dbutton dd aVersion_dbutton |
;dinamic_button_draw dd aDbutton_draw |
;dinamic_button_mouse dd aDbutton_mouse |
;version_dbutton dd aVersion_dbutton |
|
menu_bar_draw dd aMenu_bar_draw |
menu_bar_mouse dd aMenu_bar_mouse |
version_menu_bar dd aVersion_menu_bar |
;version_menu_bar dd aVersion_menu_bar |
|
tl_data_init dd sz_tl_data_init |
tl_data_clear dd sz_tl_data_clear |
77,29 → 77,29 |
aEdit_box_draw db 'edit_box',0 |
aEdit_box_key db 'edit_box_key',0 |
aEdit_box_mouse db 'edit_box_mouse',0 |
aVersion_ed db 'version_ed',0 |
;aVersion_ed db 'version_ed',0 |
|
aCheck_box_draw db 'check_box_draw',0 |
aCheck_box_mouse db 'check_box_mouse',0 |
aVersion_ch db 'version_ch',0 |
;aCheck_box_draw db 'check_box_draw',0 |
;aCheck_box_mouse db 'check_box_mouse',0 |
;aVersion_ch db 'version_ch',0 |
|
aOption_box_draw db 'option_box_draw',0 |
aOption_box_mouse db 'option_box_mouse',0 |
aVersion_op db 'version_op',0 |
;aOption_box_draw db 'option_box_draw',0 |
;aOption_box_mouse db 'option_box_mouse',0 |
;aVersion_op db 'version_op',0 |
|
aScrollbar_ver_draw db 'scrollbar_v_draw',0 |
aScrollbar_ver_mouse db 'scrollbar_v_mouse',0 |
aScrollbar_hor_draw db 'scrollbar_h_draw',0 |
aScrollbar_hor_mouse db 'scrollbar_h_mouse',0 |
aVersion_scrollbar db 'version_scrollbar',0 |
;aVersion_scrollbar db 'version_scrollbar',0 |
|
aDbutton_draw db 'dbutton_draw',0 |
aDbutton_mouse db 'dbutton_mouse',0 |
aVersion_dbutton db 'version_dbutton',0 |
;aDbutton_draw db 'dbutton_draw',0 |
;aDbutton_mouse db 'dbutton_mouse',0 |
;aVersion_dbutton db 'version_dbutton',0 |
|
aMenu_bar_draw db 'menu_bar_draw',0 |
aMenu_bar_mouse db 'menu_bar_mouse',0 |
aVersion_menu_bar db 'version_menu_bar',0 |
;aVersion_menu_bar db 'version_menu_bar',0 |
|
sz_tl_data_init db 'tl_data_init',0 |
sz_tl_data_clear db 'tl_data_clear',0 |
230,7 → 230,8 |
.position2 dd 0 ;+72 |
.work_size dd 0 ;+76 |
.all_redraw dd 0 ;+80 |
.ar_offset dd 1 ;+84;--------------------------------------------------------------------- |
.ar_offset dd 1 ;+84 |
;--------------------------------------------------------------------- |
|
align 4 |
menu_data_1: |
241,9 → 242,9 |
.y: |
.size_y dw 15 ;+8 |
.start_y dw 5 ;+10 |
.text_pointer: dd menu_text_area ;0 ;+12 |
.pos_pointer: dd menu_text_area.1 ;0 ;+16 |
.text_end dd menu_text_area.end ;0 ;+20 |
.text_pointer: dd menu_text_area ;+12 |
.pos_pointer: dd menu_text_area.1 ;+16 |
.text_end dd menu_text_area.end ;+20 |
.mouse_pos dd 0 ;+24 |
.mouse_keys dd 0 ;+28 |
.x1: |
298,6 → 299,8 |
dir_mem rb 32+304*count_of_dir_list_files |
|
|
if lang eq ru |
|
menu_text_area: |
db ' ©«',0 |
.1: |
395,6 → 398,118 |
txtFindNext db ' ©â¨ ¤ «¥¥',0 |
txtFormatCapt db '®à¬ â',0 |
txtFormatApply db 'ਬ¥¨âì',0 |
txtRow db 'âப ',0 |
txtCol db ' ª',0 |
txtOtm db '⬥ë',0 |
txtBuf db 'ãä¥à: ' |
buf db BUF_SIZE dup(0) ;buf âñåãäà ïîñëå txtBuf |
|
else |
|
menu_text_area: |
db 'File',0 |
.1: |
db 'New',0 |
db 'Open',0 |
db 'Save',0 |
db 'Exit',0 |
.end: |
db 0 |
|
;-------- |
msgbox_1: |
dw 0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'File is large, because not all open.',13 |
db ' 1. If you save it will lose "not opened" characters.',13 |
db ' 2. The document can not add text, because the memory is busy.',0 |
db 'Ok',0 ;button1 |
db 0 |
msgbox_2: |
db 3,0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'Save changes to the file?',0 |
db 'Save',0 |
db 'Discard',0 |
db 'Cancel',0 |
db 0 |
msgbox_2_funct: |
dd On_SaveAndNewFile |
dd On_NewFile |
dd 0 |
|
msgbox_3: |
db 1,0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'Error opening the file with the color settings!',13,\ |
'Because color selection of words is not possible.',13,\ |
' (error code =' |
.err: db '?' |
db ')',0 |
db 'Close',0 |
db 0 |
|
msgbox_4: |
db 1,0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'Error opening file!',13,\ |
'Maybe the file name is not entered correctly.',13,\ |
' (error code =' |
.err: db '?' |
db ')',0 |
db 'Close',0 |
db 0 |
|
msgbox_5: |
db 3,0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'Save changes to the file?',0 |
db 'Discard',0 |
db 'Cancel',0 |
db 0 |
msgbox_5_funct: |
; dd but_SaveFile |
dd On_OpenFile |
dd 0 |
|
msgbox_6: |
db 1,0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'Error saving file!',13,\ |
'Maybe the file name is not entered correctly.',13,\ |
' (error code =' |
.err: db '?' |
db ')',0 |
db 'Close',0 |
db 0 |
msgbox_7: |
db 1,0 |
db 'Text not found.',0 ;+2 = +MB_TEXT_OFFSET |
db 'Reached end of the document.',13,\ |
'Try to go to the beginning of the document',13,\ |
'or change the query and search again.',0 |
db 'Close',0 |
db 0 |
msgbox_8: |
db 3,0 |
db 'Warning',0 ;+2 = +MB_TEXT_OFFSET |
db 'To quit, quit the file.',13,\ |
'Try to keep changes to a file',13,\ |
'or start a new blank file.',0 |
db 'Cancel',0 |
db 0 |
|
txtFindCapt db 'Search',0 |
txtFindNext db 'Find next',0 |
txtFormatCapt db 'Format',0 |
txtFormatApply db 'Apply',0 |
txtRow db 'Rows',0 |
txtCol db 'Cols',0 |
txtOtm db 'Undo',0 |
txtBuf db 'Buffer: ' |
buf db BUF_SIZE dup(0) ;buf always after txtBuf |
|
end if |
;------ |
align 4 |
EvChar db 0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0 |