Question about Trichview
Posted: Tue Jun 29, 2010 1:37 pm
Hello
Our company likes to purchase your components in order to integrate them into existing programs. Presently, we use standard components which allow us to display and modify RTF text.
* We like to know whether it is possible to print a text part into a canvas and to know the number of lines or characters wich are really printed into this canvas.
* How the 'Wordwrap' is managed if the width of canvas used is less than the width of Trichview component?
* Does an event exist that is able to detect the wordwrap ?
* Can we use a dictionary of hyphenation? (Word cut at wordwrap)
Presently, we use in our programs a code like the following one:
SendMessage(ARichedit.Handle, EM_FORMATRANGE, 0, 0);
FillChar(Range, SizeOf(TFormatRange), 0);
Range.hdc := ACanvas.handle;
Range.hdcTarget := ACanvas.Handle;
Range.rc.left := ARect.Left * 1440 div Screen.PixelsPerInch;
Range.rc.top := Arect.Top * 1440 div Screen.PixelsPerInch;
Range.rc.right := ARect.Right * 1440 div Screen.PixelsPerInch;
Range.rc.Bottom := ARect.Bottom * 1440 div Screen.PixelsPerInch;
Range.chrg.cpMax := ToChar;
Range.chrg.cpMin := FromChar;
Result := SendMessage(ARichedit.Handle, EM_FORMATRANGE, 1, Longint(@Range))
SendMessage(ARichEdit.handle, EM_FORMATRANGE, 0,0);
Thank you.
EUROSOFT PLUS S.A.S.
Romuald Kler
Tel.: +33 3 87 84 71 85
Fax: +33 3 87 84 23 95
E-Mail: r.kler@eurosoft-plus.com
http://www.eurosoft-plus.com
Our company likes to purchase your components in order to integrate them into existing programs. Presently, we use standard components which allow us to display and modify RTF text.
* We like to know whether it is possible to print a text part into a canvas and to know the number of lines or characters wich are really printed into this canvas.
* How the 'Wordwrap' is managed if the width of canvas used is less than the width of Trichview component?
* Does an event exist that is able to detect the wordwrap ?
* Can we use a dictionary of hyphenation? (Word cut at wordwrap)
Presently, we use in our programs a code like the following one:
SendMessage(ARichedit.Handle, EM_FORMATRANGE, 0, 0);
FillChar(Range, SizeOf(TFormatRange), 0);
Range.hdc := ACanvas.handle;
Range.hdcTarget := ACanvas.Handle;
Range.rc.left := ARect.Left * 1440 div Screen.PixelsPerInch;
Range.rc.top := Arect.Top * 1440 div Screen.PixelsPerInch;
Range.rc.right := ARect.Right * 1440 div Screen.PixelsPerInch;
Range.rc.Bottom := ARect.Bottom * 1440 div Screen.PixelsPerInch;
Range.chrg.cpMax := ToChar;
Range.chrg.cpMin := FromChar;
Result := SendMessage(ARichedit.Handle, EM_FORMATRANGE, 1, Longint(@Range))
SendMessage(ARichEdit.handle, EM_FORMATRANGE, 0,0);
Thank you.
EUROSOFT PLUS S.A.S.
Romuald Kler
Tel.: +33 3 87 84 71 85
Fax: +33 3 87 84 23 95
E-Mail: r.kler@eurosoft-plus.com
http://www.eurosoft-plus.com