Insert Symbol Question - Revisited

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Insert Symbol Question - Revisited

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Ok, in the next update I'll add a property UseCurrentFont to TrvActionInsertSymbol.
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

Very good - I'll keep my eye out for an Actions update :-)
Post Reply