Beiträge von Pat Breslin

    Hello,

    When I copy and paste characters from Windows Character Map into a WpRichText control, it won't paste characters above U+00FF correctly. I can type characters up to 255 using Alt+0255, but I cannot type characters Alt+0256 and above.

    Is this a limitation of WpTools, or do I need to set some property?

    Thank you,

    Pat Breslin

    Hello,

    In my RichText control, I type a character in the cursor position immediately before a hyperlink. The new character becomes part of the hyperlink. Is there a way to make the new character not become part of the hyperlink?

    Thanks,

    Pat Breslin

    When do you use Start/EndUndoLevel and UndoStreamStart/End? It seems that undo level works for most simple text operations, but undo stream is required for deleting hyperlinks and tables.

    Does undo stream require more memory than undo level?

    P.S. I just wanted to say thank you very much for all the help you have given me. WPTools is a very nice product and the great support makes it even better.

    Pat Breslin

    I have Undo and Redo on a context menu. I want to disable them when there are no more Undos or Redos. How can I find out when there are no more Undos or Redos on the stack?

    How can I change the hotkeys for Undo and Redo? My hotkey for Undo is set to Alt-Backspace, but I want it to be Ctrl-Z.

    Thank you,

    Pat Breslin

    Hello,

    I want to copy the selected text from one edit control to another. I have the following code:

    WPEdit1.TextSaveFormat := 'RTF';
    WPEdit2.TextLoadFormat := 'RTF';
    WPEdit2.AsString := WPEdit1.SelectionAsString;

    The RTF in WPEdit1 looks like this:

    \plain\f0\fs16\cf0 This is a test.\par

    But the RTF in WPEdit2 looks like this:

    \plain\f1\fs16\cf0 T\plain\f1\fs16\cf0 hi\plain\f1\fs16\cf0 s \plain\f1\fs16\cf0 is \plain\f1\fs16\cf0 a \plain\f1\fs16\cf0 t\plain\f1\fs16\cf0 e\plain\f1\fs16\cf0 s\plain\f1\fs16\cf0 t.\par

    There are lots of extra RTF codes in there. Is there any way to get the RTF to copy exactly?

    Thank you,

    Pat Breslin