Recent

Author Topic: [SOLVED] Quick RichMemo Copy RTF Q?  (Read 668 times)

pixelink

  • Hero Member
  • *****
  • Posts: 1260
[SOLVED] Quick RichMemo Copy RTF Q?
« on: April 23, 2019, 03:16:47 pm »
I am using RichMemo in a project.

I cannot seem to figure out how to copy RTF format to clipboard.

Copying just text fine using this code...

Code: Pascal  [Select][+][-]
  1. clipboard.AsText:=RichMemo1.SelText;
  2.  

But, what am I missing to be able to just copy the entire RTF format to Clipboard.

Or does somebody know where the documentation is for the RICH Memo that covers the clipboard??

Thanks
« Last Edit: April 23, 2019, 03:27:21 pm by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

pixelink

  • Hero Member
  • *****
  • Posts: 1260
Re: Quick RichMemo Copy RTF Q?
« Reply #1 on: April 23, 2019, 03:26:22 pm »
Ah... figured it out....

Code: Pascal  [Select][+][-]
  1. RichMemeo1.CopyToClipboard;
  2.  

Was using the clipboard object and didn't think of it being built into the RichMemo itself.
« Last Edit: April 23, 2019, 03:27:59 pm by pixelink »
Can't Type - Forgetful - Had Stroke = Forgive this old man!
LAZ 2.2.0 •  VSSTUDIO(.Net) 2022 • Win10 • 16G RAM • Nvida GForce RTX 2060

 

TinyPortal © 2005-2018