O'Reilly logo

Expert Delphi by Paweł Głowacki

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required