It just took me quite a while to find this information so I’ll put it here for future reference.

It just took me quite a while to find this information so I’ll put it here for future reference.

A Firemonkey application can not just access the clipboard, it needs to ask the platform whether it actually has one, then get the service interface and use that.
http://blog.dummzeuch.de/2015/02/28/accessing-the-clipboard-in-a-firemonkey-application/

Comments

  1. I actually really like the approach FMX takes here - to query for certain supported services, and then use them. The reason is that the same mechanism allows you to replace the implementation of the mechanism (or provide one if there is none.) I've done this to support more functionality for mouse cursors, for example.

    It's neat and a nice architectural feature. In fact I wish much more was pluggable / replaceable in FMX this same way.

    ReplyDelete

Post a Comment