trichview.support
Re: Caret Postion |
Author |
Message |
Sergey Tkachenko |
Posted: 11/11/2002 11:36:25 Sorry, if I knew a robust solution, I would have implemented it. You can store caret position (CurItemNo, OffsetInCurItem) and restore it by SetSelectionBounds. But if you use tables, these values do not help, you need to store, for example, a number of of characters before the caret. But the main problem is not how to do storing/restoring. The main problem when to do it. TDBRichEdit has the same problem. Probably, I'll return to this problem later. > > > > >Sorry, I misunderstood :) > >Try with SetSelectionBounds > > > > I've tried using SetSelectionBounds with inconsistent results. > > Can you give me some example code of what I could put in 'Before Post' and > 'After Post' to ensure the caret stays in the same place? > > Thanks > |
Powered by ABC Amber Outlook Express Converter