Skip to content

Revise & standardise clipboard handling #73

@delphidabbler

Description

@delphidabbler

PasHi & PasHiGUI use different methods of accessing the clipboard.

Reading code is different in each program: PasHi uses low level API calls while PasHiGUI uses OLE.

Writing code uses the low level API again in PasHi, while PasHiGUI uses the VCL Clipboard object.

This is a mess thats crying out for shared code. It would be much better to standardise on one method of access, preferably the OLE object.

Maybe a new TClipboardAdapter class is called for to get the OLE clipboard object and use code derived from PasHiGUI's TDataObjectAdapter class to help handle the IDataObject instances obtained from the clipboard.

See Src/GUI/UDataObjectAdapter.pas for TDataObjectAdapter.

Originally posted by @delphidabbler in #39 (comment)

Metadata

Metadata

Assignees

Projects

Status

Considering

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions