Synchronizing cursor position in RTF text #1
I try to have the text spoken by the SAPI 5.3 component TSPVoice. I feed the component with WPRichText.AsAnsiString('ANSI') and it speaks. I then wan…
Translation of new TWPParagraphPropDlg strings #1
Seems like the strings associated with the new options introduced in v 6 in this dialog did not make it to the WPLanguageControl?
Finding bookmarks in clipboard text #3
Replacing objName with Name, this works perfectly. Thank you.
Autodetect hyperlinks not working? #1
I would imagine that setting wpAutoDetectHyperlinks in EditOptions to true would be sufficient to convert anything starting with www to a hyperlink, but that d…
Finding bookmarks in clipboard text #1
Is there a way to find the names of bookmarks in clipboard text by using the BeforePasteText event?
Some questions about images #4
You are right. When I tested if the event occurred, I used an image containing a hyperlink. But my original question remains: Why doesn't the code work? T…
Some questions about images #2
It looks like the BeforePasteImage event never occurs.
Some questions about images #1
How can I set the wrap and positionmode of an image that is pasted from the cliboard? I tried procedure TChildForm.EditorBeforePasteImage(Sender: TObject; RTFD…
auto-capitalize first char of new sentence #3
You can find code for autocapitalization here: It should be easy turning this code on or off by a boolean variable.
WP Default actions #2
In Julians absence: Try WpRichText.LastFilename
Insert/overwrite mode #3
In any program you may use the GetKeyState API function: if HiWord(GetKeyState(vk_Insert)) <> 0 then ShowMessage('Insert') else ShowMessage(�…
WPTools V6: Planned Feature List #3
It would be interesting to se your code snippets. Are you able to embed for instance Microsoft word art or excel spreadsheet in a document? Do they print with …
Uppercase In Table #6
With the following code there is an AV if two or more cells in a table are selected: ConvertMode := wpUppercase; //(also AV with wpLowercase) WpRichText1.TextC…
Object dialog #5
This is the second reference to v 6 I have seen in this forum and is exciting news. Could you describe the major new features planned for this release, and whe…
A small bug in normal layout? #5
OK. I will do the same.
To get the number of characters in body #2
Take a look at the wpdocpropdlg.pas unit. There you will find how to count the characters, including or excluding blanks.
A small bug in normal layout? #3
I agree that this combination does not make much sense and combined with a table it will occur very rarely, but when it is available it should work 100 percent…
A small bug in normal layout? #1
Use the wplayNormal layout and autozoom = wpAutoZoomFullPage. Then start a new document with a one line headline and hit enter twice. Then insert a table. Cont…
COMPRESSBITMAPASJPEG #6
Seems that TextObject.ObjRef.Compress in the OnPrepareImageForSaving event does the trick. But that should not be necessary if COMPRESSBITMAPASJPEG is defined …
COMPRESSBITMAPASJPEG #5
I did both place a breakpoint and a showmessage at the very start of the Compress procedure, and it was never called after pasting an image. And, an image copi…
COMPRESSBITMAPASJPEG #3
I did a buildall, and I know that only images which are pasted after the new build are supposed to be compressed. Nevertheless when I copy a 100 kB image from …
COMPRESSBITMAPASJPEG #1
I can't get the compression of pasted bitmaps to work. I have defined COMPRESSBITMAPASJPEG in the project and in WPInc, but the file size is still not red…
Cursor changes over MergeFields #2
Try WPRichText1.TextObjectCursor := crArrow.
The split screen technique: Two questions #4
I am writing an educational applicaton where I want to draw attention to certain sentences in the document. It would be nice to have the relevant part of the t…
How do I change background color at the end of a document? #1
I have implemented a highlighter pen (as in MS Word). When the pen is active, I set the highlight color to for instance clYellow, and when the mouse is release…
Suggestions #3
I would like to have both of them, but especially Ctrl+Enter. In MS Word, this restores the attributes to those of the Normal template. Very useful.
The split screen technique: Two questions #2
OK, this works. When I scroll and click in one of the WPRichtexts, the other scrolls too. The second window is updated after a few seconds when I have added so…
Bug report: Resizing of image #4
Looks like this has been fixed in 5.15.5. Thanks!
Bug report: Resizing of image #1
When zoom is different from 100, the image size does not follow the mouse pointer when you resize it. The effect may be very noticable.
Problem with bookmark delete and input #1
I use bookmarks for storing information which may appear in a popup menu. Some text is selected and the bookmark name inserted. Sometimes the user will select …