Search found 169 matches

by Jim Knopf
Mon Dec 04, 2023 2:59 pm
Forum: Support
Topic: footnote problem
Replies: 2
Views: 19300

Re: footnote problem

No idea ...?
by Jim Knopf
Sun Nov 19, 2023 12:02 pm
Forum: Support
Topic: footnote problem
Replies: 2
Views: 19300

footnote problem

Hello everyone, please help me with a footnote problem. I have two modes for the documents, the normal one (TRichViewEdit) or the pagewise one (TSRichViewEdit). The user can choose which one he prefers to write with. Unfortunately, I cannot insert footnotes in TSRichViewEdit. If I use the code from ...
by Jim Knopf
Wed Nov 01, 2023 2:06 pm
Forum: Support
Topic: Context reaction depending on item type
Replies: 3
Views: 15148

Re: Context reaction depending on item type

Thanks Sergey, I didn't know that you can prevent the menu from being created in OnPopUp. This is of course a very easy way! Small correction, because the values of the set must be positive only (If maybe someone else has this problem too): if (CurrRV.CurItemStyle = rvsPicture) or (CurrRV.CurItemSty...
by Jim Knopf
Wed Nov 01, 2023 12:15 pm
Forum: Support
Topic: Context reaction depending on item type
Replies: 3
Views: 15148

Context reaction depending on item type

How can I cause a popup menu to pop up when right-clicking (without first left-clicking the item) on a text item, and a graphics edit window to pop up on a graphics item? It works with the solution I show below sometimes, but sometimes the image editing window opens even though it's a text. Followin...
by Jim Knopf
Sat Oct 28, 2023 7:56 pm
Forum: Support
Topic: Controlling and formatting dropped text
Replies: 10
Views: 26833

Re: Controlling and formatting dropped text

Thanks for your thoughts. I have given up on a solution in the meantime and exclude rvddrRTF at AcceptedDragDropFormats. So you can only drop from RVF to RVF or unformatted text. If a user wants to paste from Word, then he just has to do it via copy&paste. But I have another problem I've been ex...
by Jim Knopf
Mon Oct 23, 2023 10:08 am
Forum: Support
Topic: Controlling and formatting dropped text
Replies: 10
Views: 26833

Re: Controlling and formatting dropped text

Hi Stan,

Unfortunately this does not help either.

Martin
by Jim Knopf
Sun Oct 22, 2023 8:42 pm
Forum: Support
Topic: Controlling and formatting dropped text
Replies: 10
Views: 26833

Re: Controlling and formatting dropped text

procedure TfMain.rvOleDrop(Sender: TCustomRichView; const DataObject: IDataObject; Shift: TShiftState; X, Y: Integer; PossibleDropEffects: TRVOleDropEffects; var DropEffect: TRVOleDropEffect; var DoDefault: Boolean); var EnumFormatEtc: IEnumFormatEtc; FormatEtc: TFormatEtc; Medium: TStgMedium; PDat...
by Jim Knopf
Sun Oct 22, 2023 6:04 pm
Forum: Support
Topic: Controlling and formatting dropped text
Replies: 10
Views: 26833

Re: Controlling and formatting dropped text

Hi Stan,
unfortunately, the text is not selected for me after dropping. Therefore I cannot use this method.

Sergey, could you please tell me which (undocumented) methods are responsible for dropping text?
by Jim Knopf
Sun Oct 22, 2023 2:01 pm
Forum: Support
Topic: Controlling and formatting dropped text
Replies: 10
Views: 26833

Re: Controlling and formatting dropped text

Hi Stan, thank you very much for your answer. But unfortunately it is about dropping text from for example Word into a TRichViewEdit or TSRichViewEdit respectively. Similar to my question with dropping text, where the text should be adapted to the target formatting, but markups (bold, italic etc.) s...
by Jim Knopf
Sun Oct 22, 2023 9:54 am
Forum: Support
Topic: Controlling and formatting dropped text
Replies: 10
Views: 26833

Controlling and formatting dropped text

Hello Sergey,
referring to the problem of paste and formatting, I have a question how to intercept and control the process in OleDrop.

With OnPaste I can easily redirect the clipboard to the invisible RichViewEdit.
But how can I do that with OnOleDrop?

Greetings
Martin
by Jim Knopf
Sat Oct 21, 2023 2:27 pm
Forum: Support
Topic: Paste text with target font but keep styles
Replies: 6
Views: 14370

Re: Paste text with target font but keep styles

Hello Sergey, thanks again for your tips! Indeed, your solution with the invisible RVEdit works perfectly. Here again the complete code, if someone else is also interested in this topic. The clean transfer of differently formatted text has always been an annoying problem in MS Word, too, which is wh...
by Jim Knopf
Sat Oct 21, 2023 12:35 pm
Forum: Support
Topic: Paste text with target font but keep styles
Replies: 6
Views: 14370

Re: Paste text with target font but keep styles

Hello Sergey,

thanks for your additions, I will make it more stable this way.

Have a nice weekend
Martin
by Jim Knopf
Sat Oct 21, 2023 9:18 am
Forum: Support
Topic: Paste text with target font but keep styles
Replies: 6
Views: 14370

Re: Paste text with target font but keep styles

Oh - same moment posted :-)
Thank you, I'll try out your tips.
by Jim Knopf
Sat Oct 21, 2023 9:17 am
Forum: Support
Topic: Paste text with target font but keep styles
Replies: 6
Views: 14370

Re: Paste text with target font but keep styles

Okay, I did find a working solution, but it's not straightforward. I'm posting it here in case someone also has this problem (CurrRV is the current TRichViewEdit). Maybe Sergey has a simpler solution? 1. Paste manually: procedure TfMain.rvPaste(Sender: TCustomRichViewEdit; var DoDefault: Boolean); b...
by Jim Knopf
Fri Oct 20, 2023 7:15 pm
Forum: Support
Topic: Paste text with target font but keep styles
Replies: 6
Views: 14370

Paste text with target font but keep styles

Hello Sergey, i give up. How can I transfer text to a TRichViewEdit with the following requirements: In the target RV there is a certain formatting, e.g. Courier New 12. In Word or somewhere else, I select text that is formatted in, say, USA light, and put it on the clipboard. This text has underlin...