Am 12.03.2008 um 21:23 schrieb Edwin Leuven:
i am trying to get some row selection code working in insettabular,
but am baffled by this cursor business
the scenario is the following:
the cursor is outside the tabular
at the moment, on mouse press, i check in front of what row i click
this i do in InsetTabular::doDispatch
now i want to select row r
i tried this with the following code
cur.bv().cursor().anchor_.idx() = tabular.getFirstCellInRow(r);
cur.idx() = tabular.getLastCellInRow(r);
cur.selection() = true;
cur.pit() = 0;
cur.pos() = 0;
but this doesn't work
can someone explain what i am doing wrong here?
* go to first cell
* cur.resetAnchor();
* go to last cell
* cur.setSelection();
Stefan