diff --git a/programs/other/table/hello.cpp b/programs/other/table/hello.cpp index 4c721446ec..08a340ac7a 100644 --- a/programs/other/table/hello.cpp +++ b/programs/other/table/hello.cpp @@ -6,7 +6,7 @@ ///#include "use_library.h" //const char header[] = "Table"; -#define TABLE_VERSION "0.94a" +#define TABLE_VERSION "0.95" // строки, которые выводит программа const char *sFileSign = "KolibriTable File\n"; @@ -120,7 +120,9 @@ edit_box file_box = {0,9*8-5,WND_H - 16-32,0xffffff,0x6a9480,0,0x808080,0,255,(d #define SIZE_Y 2 #define SIZE_SELECT 3 #define SIZE_DRAG 4 -int size_mouse_x, size_mouse_y, size_id, size_state = 0; +int size_mouse_x, size_mouse_y, size_id, size_state = 0; + +int window_is_dragged = 0; // сейчас перетаскивается окно // растаскивание ячейки при ее тащении за правый нижний угол, с заполнением ячеек int drag_x, drag_y; @@ -138,19 +140,6 @@ void kos_DrawRegion(Word x, Word y,Word width, Word height, Dword color1, Word i kos_DrawLine(x+1,y+height-1,x+width-1,y+height-1,color1,invert); } -// edit box -/* -void KEdit() -{ - int max_char = (editbox_w) / 6; - kos_DrawBar(editbox_x,editbox_y,editbox_w-1,editbox_h-3,0xFFFFFF); //белая область - if (strlen(edit_text)= COL_BUTTON && button < ROW_BUTTON) - { - scroll_x = button - COL_BUTTON; - fn_edit = is_edit = 0; - draw_window(); - //sprintf(debuf, "col %U", scroll_x); - //rtlDebugOutString(debuf); - } - else if (button >= ROW_BUTTON && button < COL_HEAD_BUTTON) - { - scroll_y = button - ROW_BUTTON; - fn_edit = is_edit = 0; - draw_window(); - //sprintf(debuf, "row %U", scroll_y); - //rtlDebugOutString(debuf); - } - */ if (button >= COL_HEAD_BUTTON && button < ROW_HEAD_BUTTON) { sel_end_x = sel_x = button - COL_HEAD_BUTTON;