Using share sheets

Our app is already very spectacular, but it is not very useful. The photo is displayed in the form, but it goes away when we stop the app or take another photo. It is a typical functionality in operating systems to be able to share things with other installed apps. For example, we might want to share a photo on social media or send it by email. This can be easily achieved through share sheets that are also available through actions.

Drop another TSpeedButton on the toolbar. Rename it to spdbtnSharePhoto, change its StyleLookup property to actiontoolbutton, adjust its width and align it to the Right. Expand its Action property in the Object Inspector and, through the context menu, add the standard TShowShareSheetAction

Get Expert Delphi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.