I don’t have Lazarus, just FPC,   Thanks for the link.
Thanks for the information, I understand how it works now.  
I appreciate the help. 
 
James
 
From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> On Behalf Of Martin 
Frb via fpc-pascal
Sent: Thursday, December 31, 2020 12:37 PM
To: fpc-pascal@lists.freepascal.org
Cc: Martin Frb <laza...@mfriebe.de>
Subject: Re: [fpc-pascal] GetClipboardFormatName causing an Error 216
 
On 31/12/2020 18:11, James Richters via fpc-pascal wrote:
Thanks for the info on SynEdit.  Where can I find the synedit source related to 
the clipboard?
I think the link you indtended ater 'See the code at.' Didn't come though, can 
you pleaese send it again?
 

Sorry, I assumed SynEdit would be recognized as part of Lazarus (yes its the 
fpc list, but the name may still be known). So I simply gave a file location in 
the Lazarus source.

It can be found here: 
https://github.com/User4martin/lazarus/blob/master/components/synedit/syneditmiscclasses.pp#L1674

Some of the code is specific to SynEdit (E.g. information on code-folding).

But ReadFromClipboard 
https://github.com/User4martin/lazarus/blob/master/components/synedit/syneditmiscclasses.pp#L1699
 
checks for either flag being present, and that is all you need. => Then the 
normal text, and line-ends in the text mark where each column ends.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to