trichview.support
Re: Carat after Format |
Author |
Message |
Martin Holmes |
Posted: 12/02/2003 16:19:51 Hi there, This seems a bit complicated. GetSelectionBounds also seems rather difficult to work with. Could you explain what RVData.Format_ does, and why it has the underscore at the end? The Help file doesn't mention TCustomRVData.Format_. I'm used to being able to get and set SelStart and SelLength, and I'm struggling a bit to figure out how to do simple operations like this in RichViewEdit. (This is not a criticism; I realize the approach of RichView is different from TRichEdit, and that's why I want to use it. I'm just a bit thick!) Cheers, Martin Sergey Tkachenko wrote: > Well, you can use this code: > > RichViewEdit.RVData.Format_(True, True, False, 0, RichViewEdit.Canvas, > False, > False); > RichViewEdit.Invalidate; > > It will reformat document without losing caret position (useful when you > change margins or something like this) > > >>No. >> >> >>"Sergey Tkachenko" <[email protected]> wrote: >> >>>Was document changed between calling formats? >>> >>> >>>>Hi, >>>> >>>>I would like to re-position the carat back to its original position > > after > >>>>a call to rve.Format. What is the best way to do this? >>>> >>>>Thanks >>> >>> > > |
Powered by ABC Amber Outlook Express Converter