void __fastcall TForm1::ListView1ItemClick(TObject * const Sender, TListViewItem * const AItem)
{
//int _index = (const_cast<TListViewItem*>(AItem))->Index;
// String PStr=const_cast<TListViewItem*>(AItem)->Text;
// PStr=PStr.SubString(PStr.Length()-11 ,11);
// Edit1->Text=PStr;
_di_IFMXClipboardService service;
if(TPlatformServices::Current->SupportsPlatformService(__uuidof(IFMXClipboardService)) &&
(service = TPlatformServices::Current->GetPlatformService(__uuidof(IFMXClipboardService))))
{
// if(TextRadioButton->IsChecked) {
if( ListView1->ItemIndex>=0 )
{
String PStr=const_cast<TListViewItem*>(AItem)->Text;
PStr=PStr.SubString(PStr.Length()-11 ,11);
//String Pstr=ListView1->ItemAppearance
service->SetClipboard(TValue::_op_Implicit(PStr ));
}
// }
// else {
// std::unique_ptr<TBitmap> Image(TextBorder->MakeScreenshot());
// service->SetClipboard(TValue::_op_Implicit(Image.get()));
// }
}
}