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
from the Media Library
category.

TShowShareSheetAction in the context menu in Object Inspector
That's a faster way of adding actions. We can do it directly from the Object Inspector
without having to display Action List Editor
and then hooking the action to...