trichview.support
Re: How to get CurItemNo in tables? |
Author |
Message |
Sergey Tkachenko |
Posted: 07/19/2002 21:42:10 Hi, Yes, in this case rve.CurItemNo returns an index of table item. Items in cells are not items of the main document, they are indexed separately for each cell. When cell is edited, a special RichViewEdit is created on top of it. You can use it instead of the main editor. In the latest version, it can be accessed as rve := RichViewEdit1.TopLevelEditor; In 1.6.10, it can be accessed as rve := RichViewEdit1; while rve.InplaceEditor<>nil do rve := TCustomRichViewEdit(rve.InplaceEditor); Now you can use CurItemNo and other methods of rve. (if cell is not edited, rve will be equal to RichViewEdit1); But, in most of cases, CurItemNo is not needed. You can use GetCurrent*** and SetCurrent*** methods, which work with the item in position of caret - both if it is in the main editor or in cell. > Hi Sergey, > > I don't know if you got my mail so here is my question once more: > rve.CurItemNo doesn't work if an item is placed in a table (or placed in > a table / in a table / in a table / and so on...). > How do I get the CurItemNo if an item is embedded as described above? > BTW, I'm still using the v1.6.10 trial, but order & payment are alrady on > the way ... > > Thanks a lot for your help! > Achim |
Powered by ABC Amber Outlook Express Converter