diff --git a/include/sheet.cpp b/include/sheet.cpp index 8d575ba74..941f09efb 100755 --- a/include/sheet.cpp +++ b/include/sheet.cpp @@ -181,7 +181,7 @@ TSheet_control::TSheet_control( // Definizione della prima colonna (numero di riga) const long attr = XI_ATR_VISIBLE | XI_ATR_RJUST | XI_ATR_SELECTABLE; XI_OBJ_DEF* coldef = xi_add_column_def(listdef, FIRST_FIELD+1000-1, attr, 0, - NUMBER_WIDTH * XI_FU_MULTIPLE, NUMBER_WIDTH, ""); + /* NUMBER_WIDTH*/ 2 * XI_FU_MULTIPLE, NUMBER_WIDTH , ""); coldef->app_data = (long)this; coldef->v.column->heading_platform = TRUE; @@ -539,7 +539,8 @@ bool TSheet_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev) else { xiev->v.cell_request.color = NORMAL_COLOR; - src = format("%ld", rec+1); +// src = format("%ld", rec+1); + src = ""; } char* dst = xiev->v.cell_request.s; @@ -601,7 +602,7 @@ bool TSheet_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev) const int row = xiev->v.select.xi_obj->v.row; const long rec = row2rec(row); - const short cid = column[col]->cid; + const short cid = column[col]->cid - 1000; if (cid >= FIRST_FIELD) { if (check_enabled()) @@ -673,7 +674,7 @@ bool TSheet_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev) /////////////////////////////////////////////////////////// class TQuery_field : public TOperable_field -{ +{ protected: virtual void create(WINDOW parent); @@ -848,7 +849,7 @@ bool TSheet::on_key(KEY key) if (id2pos(DLG_NEWREC) >= 0) stop_run(K_INS); break; - case K_CTRL+'C': + case K_CTRL+'G': if (id2pos(DLG_LINK) >= 0) stop_run(key); break;