[fpc-pascal] GetClipboardFormatName causing an Error 216
Martin Frb
lazarus at mfriebe.de
Thu Dec 31 18:36:30 CET 2020
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/f81fcda5/attachment.htm>
More information about the fpc-pascal
mailing list