Page 2 of 2

Re: Dragon Naturally Speaking 9.5

Posted: Mon Feb 20, 2023 3:22 pm
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;

Re: Dragon Naturally Speaking 9.5

Posted: Mon Feb 20, 2023 5:45 pm
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.