Page 1 of 1

Modification To InsSymbolRVForm

Posted: Sun Feb 03, 2008 12:39 am
by DickBryant
Hi Sergey,

BTW, I've upgraded to the latest version of TRichview and TRVActions as you suggested earlier. I'm working through some of the changes that I'd previously made to the source to get 'back to where I was' :-) In so doing the following enhancement came to mind:

For my purposes (and possibly others) it would be preferable if the form appeared set to the font of the editor that had the focus when the Insert Symbol button is clicked.

I've found the

procedure TfrmRVInsertSymbol.FormCreate(Sender: TObject); line where this is set:

Init(183, 'Symbol', SYMBOL_CHARSET);

What would I need to do to get the FontName where the caret is currently in the calling rve so I could do

Init(183, FontName, DEFAULT_CHARSET);