Some programs already wrote on C will have using new structure an edit_box and they will have new ability to use system library box_lib.obj.

git-svn-id: svn://kolibrios.org@1218 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Alexey Teplov ( 2009-10-17 04:13:20 +00:00
parent e1ff25c4c9
commit c002678faf
5 changed files with 13 additions and 10 deletions

View File

@ -37,12 +37,12 @@ byte path[256]="/rd/1/",
byte PathHistory[2560];
dword file_mas[6898];
int j, i;
int j, i, mouse_dd;
dword stak[100]=0; //îêíî About
edit_box edit1= {250,247,13,0xffffff,videlenie,0xD3DDEB,0xffffff,0,248,#edit_path,64,6,6};
edit_box edit2= {250,213,80,0xFFFFCC,videlenie,0xFFFFCC,0xffffff,0,248,#file_name,64,6,6};
edit_box edit1= {250,247,13,0xffffff,videlenie,0xD3DDEB,0xffffff,0,248,#edit_path,#mouse_dd,64,6,6};
edit_box edit2= {250,213,80,0xFFFFCC,videlenie,0xFFFFCC,0xffffff,0,248,#file_name,#mouse_dd,64,6,6};
proc_info Form;
dword buf, off; //äëÿ òåêñòà è áóôåðà

View File

@ -1,5 +1,7 @@
..\C--\c-- Eolite.c--
REM ..\C--\c-- Eolite.c--
@c-- Eolite.c--
del Eolite
rename Eolite.com Eolite
..\C--\kpack Eolite
REM ..\C--\kpack Eolite
@kpack Eolite
pause

View File

@ -15,7 +15,7 @@ char aEdit_box_mouse[15] = "edit_box_mouse\0";
struct edit_box{
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
text_color, max, text, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
};

View File

@ -74,10 +74,11 @@ int win_x, win_y;
// нижняя панель с кнопками и полем ввода
#define MENU_PANEL_HEIGHT 40
Dword panel_y = 0;
Dword mouse_dd;
// для поля ввода
char edit_text[256] = "";
edit_box cell_box = {0,9*8-5,WND_H - 16-32,0xffffff,0x6a9480,0,0x808080,0,255,(dword)&edit_text,0};
edit_box cell_box = {0,9*8-5,WND_H - 16-32,0xffffff,0x6a9480,0,0x808080,0,255,(dword)&edit_text,(dword)&mouse_dd,0};
// ячейки - их параметры и текст
DWORD def_col_width = 80, def_row_height = 16;
@ -121,7 +122,7 @@ DWORD nx = 0, ny = 0;
// редактирование имени файла
bool fn_edit = 0;
char fname[256];
edit_box file_box = {0,9*8-5,WND_H - 16-32,0xffffff,0x6a9480,0,0x808080,0,255,(dword)&fname,0};
edit_box file_box = {0,9*8-5,WND_H - 16-32,0xffffff,0x6a9480,0,0x808080,0,255,(dword)&fname,(dword)&mouse_dd,0};
// изменение размеров
#define SIZE_X 1 // состояние

View File

@ -34,7 +34,7 @@ dword dummy = 0;
struct edit_box{
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
text_color, max, text, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
text_color, max, text, mouse_variable, flags, size, pos, offset, cl_curs_x, cl_curs_y, shift, shift_old;
};
void load_edit_box()