Eliminati i numeri riga dagli sheet

git-svn-id: svn://10.65.10.50/trunk@3243 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-07-25 12:18:16 +00:00
parent 0509a0f280
commit 1c6c8197d6

View File

@ -181,7 +181,7 @@ TSheet_control::TSheet_control(
// Definizione della prima colonna (numero di riga) // Definizione della prima colonna (numero di riga)
const long attr = XI_ATR_VISIBLE | XI_ATR_RJUST | XI_ATR_SELECTABLE; 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, 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->app_data = (long)this;
coldef->v.column->heading_platform = TRUE; coldef->v.column->heading_platform = TRUE;
@ -539,7 +539,8 @@ bool TSheet_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
else else
{ {
xiev->v.cell_request.color = NORMAL_COLOR; 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; 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 int row = xiev->v.select.xi_obj->v.row;
const long rec = row2rec(row); const long rec = row2rec(row);
const short cid = column[col]->cid; const short cid = column[col]->cid - 1000;
if (cid >= FIRST_FIELD) if (cid >= FIRST_FIELD)
{ {
if (check_enabled()) if (check_enabled())
@ -673,7 +674,7 @@ bool TSheet_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
class TQuery_field : public TOperable_field class TQuery_field : public TOperable_field
{ {
protected: protected:
virtual void create(WINDOW parent); virtual void create(WINDOW parent);
@ -848,7 +849,7 @@ bool TSheet::on_key(KEY key)
if (id2pos(DLG_NEWREC) >= 0) if (id2pos(DLG_NEWREC) >= 0)
stop_run(K_INS); stop_run(K_INS);
break; break;
case K_CTRL+'C': case K_CTRL+'G':
if (id2pos(DLG_LINK) >= 0) if (id2pos(DLG_LINK) >= 0)
stop_run(key); stop_run(key);
break; break;