Dragon Naturally Speaking 9.5

General TRichView support forum. Please post your questions here
tothpaul
Posts: 42
Joined: Fri Feb 06, 2015 10:41 am

Re: Dragon Naturally Speaking 9.5

Post by tothpaul »

hum...I've removed part of my patch and it works better :)

with just

Code: Select all

procedure TRichViewEdit.EMReplaceSel(var Msg: TMessage); message EM_REPLACESEL;
begin
  InsertText(PChar(Msg.LParam));
end;
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Dragon Naturally Speaking 9.5

Post by Sergey Tkachenko »

LinearToRichView is just a function that converts one type of coordinates to another. It must repaint nothing.
It is called when processing EM_LINEFROMCHAR message, but this message must not call repainting to.

In your log, I cannot see any edit control message that can cause repainting, EM_POSFROMCHAR, WM_GETTEXTLENGTH, WM_GETTEXT, EM_GETSEL, EM_LINEFROMCHAR are informational messages, repainting must not happen when processing them.
Post Reply