Search found 30 matches

by tothpaul
Mon Feb 20, 2023 3:22 pm
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 57048

Re: Dragon Naturally Speaking 9.5

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;
by tothpaul
Mon Feb 20, 2023 2:39 pm
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 57048

Re: Dragon Naturally Speaking 9.5

hum...it seems that LinearToRichView is the source of the pb my patch was to avoid a second call when the last computed value is known but it doesn't work anymore [DRAGON] WM_GETTEXTLENGTH 0, 0 : 570 [DRAGON] WM_GETTEXT 571, 1697724 : 570 [DRAGON] WM_GETTEXT 1082, 1697724 : 570 [DRAGON] WM_PAINT 0 ...
by tothpaul
Mon Feb 20, 2023 9:36 am
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 57048

Re: Dragon Naturally Speaking 9.5

damned ! the flickering is back :/ since I've updated to last version of RV (from an old version) I have to dig into the methods... when Dragon Medical One is active I have this messages permanently procedure TRichViewEdit.WndProc(var Msg: TMessage); begin { [DRAGON] EM_POSFROMCHAR 463, 0 : 65562 ...
by tothpaul
Fri Nov 25, 2022 12:27 pm
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 8122

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

I don"t use backgrounds...is that correct to add a "FParaStyle := nil" after "FDrawITem := nil" at the end of DrawPage ? because it fix the problem.
by tothpaul
Fri Nov 25, 2022 12:05 pm
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 8122

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

No :) I have the same bug when saving to a PDF with this code procedure TRVPrint.SaveAsPDF(const AFileName: string); begin var Doc := LLPDFDocument.TPDFDocument.Create(nil); Doc.PDFACompatible := True; Doc.FileName := UniqueFileName(AFileName); Doc.BeginDoc; VirtualPrinter.Active := True ...
by tothpaul
Fri Nov 25, 2022 11:40 am
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 8122

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

yep I have probably missed something in my patch (taken from an old RV version), when I use the VirtualPrinter everything is right.

Thanks
by tothpaul
Fri Nov 25, 2022 11:18 am
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 8122

Re: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

ok pi is FParaStyle and pi.ClassName returns TIBCParam !!! is see that FParaStyle is "valid only in DrawPage"...but it point to something completly out of scope (IBDAC SQL Parameter) maybe it's one of my patches that does this...but I do not change anything in the para styles I'll revert my changes ...
by tothpaul
Fri Nov 25, 2022 10:20 am
Forum: Support
Topic: strange bug in TRVHeaderFooterRVData.DrawBackToBitmap
Replies: 6
Views: 8122

strange bug in TRVHeaderFooterRVData.DrawBackToBitmap

Hello, I have a strange bug on some PC in a unknown but reproductible situation in TRVHeaderFooterRVData.DrawBackToBitmap when I print a document, "pi.Background" is null, you test for instance "(pi <> nil) and (pi.Background.Color..", I have to add "(pi <> nil) and (pi.Background <> nil) and (pi ...
by tothpaul
Fri Oct 14, 2022 3:43 pm
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 30700

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

OK, you're right, I don't have those problems with llPDFDocument
by tothpaul
Fri Oct 14, 2022 9:36 am
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 30700

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

OK, it way easier with VirtualPrinter ^^ but I can show some problems PDF.zip by default, the footer display "Page 1 /1" with a space before the "/", and if you set PageNoFromNumber to 100 the text override the / if you change one of the checkbox the page numbers are scaled to fit the orginal ...
by tothpaul
Fri Oct 14, 2022 8:57 am
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 30700

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

ok , in this case I use 4 TRichView, 1 RVStyle and a RVPrint // Dispatch RVStyle.TextEngine := rvteWindows; RVPrint.TitlePage := True; RVPrint.SetHeader(RVHeader.RVData, TRVHFType.rvhftFirstPage); RVPrint.SetFooter(RVFooter.RVData, TRVHFType.rvhftFirstPage); RVPrint.SetHeader(RVHeader2.RVData ...
by tothpaul
Fri Oct 14, 2022 8:43 am
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 30700

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

ok , in this case I use 4 TRichView, 1 RVStyle and a RVPrint // Dispatch RVStyle.TextEngine := rvteWindows; RVPrint.TitlePage := True; RVPrint.SetHeader(RVHeader.RVData, TRVHFType.rvhftFirstPage); RVPrint.SetFooter(RVFooter.RVData, TRVHFType.rvhftFirstPage); RVPrint.SetHeader(RVHeader2.RVData ...
by tothpaul
Thu Oct 13, 2022 4:11 pm
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 30700

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

Arial, has you can see in the code. but I think it is related also to MetafileCompatibility I have another pb when this option is not set, if I put underlined text and normal text on the same line, the space between the two items is not visible AddNL('some text', NormalText, ParaNo) AddNL ...
by tothpaul
Mon Oct 10, 2022 12:32 pm
Forum: Support
Topic: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed
Replies: 11
Views: 30700

Re: SynPDF+TSrichViewEdit,The pagenumber in pdf deformed

hum...I have the same strange bug I've added some AddNL() to see the difference between "FontSmall" and the PageNumber & Count font. procedure TFramePrescription.AddPageNumber(RVData: TCustomRVData); begin RVData.AddNL('Page 1/2:', FontSmall, ParaCenter); var p := TRVPageNumberItemInfo.Create(RVData ...
by tothpaul
Wed Jun 02, 2021 1:32 pm
Forum: Support
Topic: Dragon Naturally Speaking 9.5
Replies: 16
Views: 57048

Re: Dragon Naturally Speaking 9.5

with last version of RVEditDemo.exe, if I set TRichViewEdit=1 (3 or 4), I have a access violation error at 0040712C I guess it's about EM_POSFROMCHAR when Msg.WParam is not a Pointer to a TPointL structure but a 0 based char index. If I set TRichViewEdit=2, and I ask Dragon to set text in bold, I ...