Menu

Commit [r1281]  Maximize  Restore  History

Modified TClipboardHelper to have AddXXX methods for each format supported by program instead of a couple of generic overloaded methods. Updated using TCopyViewMgr accordingly.

This was done to get round a quirk in how TEncoding converts string to TBytes. MBCS encodings include termination 0 byte in bytes but Unicode encodings do not include any terminating 0 byte pair. TClipboardHelper now requires text data to be passed in required string format and ensures terminating zero bytes are written to clipboard.

XMLDoc commented TClipboardHelper.

delphidabbler 2010-12-19

changed /branches/v4-dev/Src/UClipboardHelper.pas
changed /branches/v4-dev/Src/UCopyViewMgr.pas
/branches/v4-dev/Src/UClipboardHelper.pas Diff Switch to side-by-side view
Loading...
/branches/v4-dev/Src/UCopyViewMgr.pas Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.