displaying current cursor position on status bar
Posted on 2006-03-22
I am creating editor based on TSynMemo component from SynEdit suite. This component is similar to TMemo. I would like to write current row/column on status bar. To do so I have to put code in many, many places (OnKeyUp, OnClicked etc.) and it still doesn't work as expected in some situations. In TRichEdit control there's OnSelectionChange event which is best for such activity. Unfortunately neither in TSynMemo nor in TMemo this event exists. So my question - what is the best way to catch row/column (or SelStart) while editing text in TMemo.