trichview.support
Re: Undo & cellcolor |
Author |
Message |
Sergey Tkachenko |
Posted: 06/14/2005 12:30:03 Direct assignment to cell properties cannot be undone. Use table->SetCell***() methods, SetCellColor() in this case. PS: I believe this code is incomplete, because Custitem is not assigned. > > Dear Sergey, > > I'm trying to set the background color of a tablecell with an undo function. > But I can't make it work. > > I use the following code: > rve->BeginUndoCustomGroup("cell_color"); > rve->SetUndoGroupMode(true); > TCustomRVItemInfo *Custitem; > ((TRVTableItemInfo*)Custitem)->Cells[0][0]->Color = clRed; > rve->SetUndoGroupMode(false); > > Could you advise me? > > Thanks. > > Pieter E. |
Powered by ABC Amber Outlook Express Converter