Page 1 of 1

Insert Symbol Question - Revisited

Posted: Sun Nov 23, 2008 3:05 pm
by DickBryant
Hi Sergey,

I asked this one back in February, but it was never answered. Could you give it a try?

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);
_________________
Dick Bryant
Open Window Software

Posted: Mon Nov 24, 2008 4:42 pm
by Sergey Tkachenko
Ok, in the next update I'll add a property UseCurrentFont to TrvActionInsertSymbol.

Posted: Mon Nov 24, 2008 8:22 pm
by DickBryant
Very good - I'll keep my eye out for an Actions update :-)