trichview.support
Re: Undo & cellcolor |
Author |
Message |
Pieter E. |
Posted: 06/14/2005 17:21:50 Thank you for your great support!!! It works great! Pieter E. "Sergey Tkachenko" <svt@trichview.com> wrote: >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