forked from KolibriOS/kolibrios
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:
parent
e1ff25c4c9
commit
c002678faf
@ -37,12 +37,12 @@ byte path[256]="/rd/1/",
|
|||||||
byte PathHistory[2560];
|
byte PathHistory[2560];
|
||||||
|
|
||||||
dword file_mas[6898];
|
dword file_mas[6898];
|
||||||
int j, i;
|
int j, i, mouse_dd;
|
||||||
|
|
||||||
dword stak[100]=0; //îêíî About
|
dword stak[100]=0; //îêíî About
|
||||||
|
|
||||||
edit_box edit1= {250,247,13,0xffffff,videlenie,0xD3DDEB,0xffffff,0,248,#edit_path,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,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;
|
proc_info Form;
|
||||||
dword buf, off; //äëÿ òåêñòà è áóôåðà
|
dword buf, off; //äëÿ òåêñòà è áóôåðà
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
..\C--\c-- Eolite.c--
|
REM ..\C--\c-- Eolite.c--
|
||||||
|
@c-- Eolite.c--
|
||||||
del Eolite
|
del Eolite
|
||||||
rename Eolite.com Eolite
|
rename Eolite.com Eolite
|
||||||
..\C--\kpack Eolite
|
REM ..\C--\kpack Eolite
|
||||||
|
@kpack Eolite
|
||||||
pause
|
pause
|
@ -15,7 +15,7 @@ char aEdit_box_mouse[15] = "edit_box_mouse\0";
|
|||||||
|
|
||||||
struct edit_box{
|
struct edit_box{
|
||||||
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,10 +74,11 @@ int win_x, win_y;
|
|||||||
// нижняя панель с кнопками и полем ввода
|
// нижняя панель с кнопками и полем ввода
|
||||||
#define MENU_PANEL_HEIGHT 40
|
#define MENU_PANEL_HEIGHT 40
|
||||||
Dword panel_y = 0;
|
Dword panel_y = 0;
|
||||||
|
Dword mouse_dd;
|
||||||
// для поля ввода
|
// для поля ввода
|
||||||
|
|
||||||
char edit_text[256] = "";
|
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;
|
DWORD def_col_width = 80, def_row_height = 16;
|
||||||
@ -121,7 +122,7 @@ DWORD nx = 0, ny = 0;
|
|||||||
// редактирование имени файла
|
// редактирование имени файла
|
||||||
bool fn_edit = 0;
|
bool fn_edit = 0;
|
||||||
char fname[256];
|
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 // состояние
|
#define SIZE_X 1 // состояние
|
||||||
|
@ -34,7 +34,7 @@ dword dummy = 0;
|
|||||||
|
|
||||||
struct edit_box{
|
struct edit_box{
|
||||||
dword width, left, top, color, shift_color, focus_border_color, blur_border_color,
|
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()
|
void load_edit_box()
|
||||||
|
Loading…
Reference in New Issue
Block a user