[fpc-pascal] GetClipboardFormatName causing an Error 216

James Richters james.richters at productionautomation.net
Thu Dec 31 18:54:17 CET 2020


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-bounces at lists.freepascal.org> On Behalf Of Martin Frb via fpc-pascal
Sent: Thursday, December 31, 2020 12:37 PM
To: fpc-pascal at lists.freepascal.org
Cc: Martin Frb <lazarus at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20201231/44c05a25/attachment-0001.htm>


More information about the fpc-pascal mailing list