Hi Francisco,
Regarding Problem 2, try this:
1. Set up an action for sharing the image and assign it to your TButton (or TSpeedButton). To do this, place TActionList onto your form, and then select TButton>Action>New Standard Action>Media Library>TShowShareSheetAction in the Object Inspector. Then set up this OnBeforeExecute event (you can access it from the Events tab by expanding the Actions menu):
void __fastcall TfrmShareSheet::ShowShareSheetAction1BeforeExecute(TObject *Sender)
{
// show the share sheet
ShowShareSheetAction1->Bitmap->Assign(imgCameraPicture->Bitmap);
}
2. Set up an on-click event that executes the ShareSheet action that you previously defined, such as:
void __fastcall TfrmShareSheet::Button1Click(TObject *Sender)
{
imgCameraPicture->ExecuteAction(ShowShareSheetAction1);
}
Regards,
Sarina