![]() |
|
component adı çince - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3) +--- Forum: Mobil Platform - FireMonkey (FMX) (https://www.delphican.com/forumdisplay.php?fid=7) +--- Konu Başlığı: component adı çince (/showthread.php?tid=3579) |
component adı çince - ahmetb - 21-04-2019 Merhaba; Listview adını almak istediğimde sadece listview adı çince olarak geliyor. bunu nasıl çözebilirim? Showmessage(TListView(Data.Source).Name); ![]() procedure TForm1.ListView1DragDrop(Sender: TObject; const [Ref] Data: TDragObject; const [Ref] Point: TPointF); var Stl: TStrings; Obj: IControl; Index: Integer; LVInsertName: TListView; LItem, AItem: TListViewItem; begin Stl := TStringList.Create; Obj := ObjectAtPoint(Screen.MousePos); try if Obj <> Nil then begin Index := GetIndexAtPos(TListView(Sender), Point); // Index no LVInsertName := TListView(Obj); // Insert listview AItem := TListViewItem(TListView(Data.Source)); // Seçili satır Showmessage(TListView(Obj).Name); Showmessage(TListView(Data.Source).Name); end; finally end; end; component adı çince - ahmetb - 26-04-2019 Sevgili arkadaşlar konu güncel
component adı çince - engerex - 26-04-2019 String/AnsiString farkından olabilir mi? component adı çince - SimaWB - 26-04-2019 AItem := TListViewItem(TListView(Data.Source));Böyle bir TypeCast olmaz Yani Data.Source ya TListView'dir yada TListViewItem'dır. Bence hatanız burada. sanırım şöyle olmalı: AItem := TListViewItem(TListView(Sender).Selected); Cvp: component adı çince - ahmetb - 27-04-2019 Tekrar merhaba, sanırım yanlış anlaşılma var. bu şekilde sorunsuz olarak bilgilerini alıyorum. Listviewden (AItem := TListViewItem(TListView(Data.Source))) listview adını almak istediğimde listview adı çince geliyor sorun burada Showmessage(TListView(Data.Source).Name) component adı çince - Tuğrul HELVACI - 29-04-2019 O zaman sürükleyen ve bırakan bir TListView değildir. Bana kalırsa ilgili satıra bir breakpoint koyun ve Data.Source.ClassName 'in ne olduğuna bakıverin. component adı çince - sadettinpolat - 29-04-2019 (27-04-2019, Saat: 13:47)ahmetb Adlı Kullanıcıdan Alıntı: Tekrar merhaba, sanırım yanlış anlaşılma var. Bu şekilde çalışıyorsa bunun tek bir anlamı vardır. Source objesinin türü TListViewItem'dır. O zaman neden TListView 'e tip dönüşümü yapılmış anlayamadım. bu satır da aynı işi yerine getirir. AItem := TListViewItem(Data.Source); Cvp: component adı çince - ahmetb - 30-04-2019 FMX tarafında ListView DragDrop sonderece rezil; Bende bu nedenden dolayı özel procedure yapıyorum. sanırım yarın tamamlamış olurum. cevaplardan dolayı teşekkür ederim. AItem := TListViewItem(Data.Source);bilgilendirme için teşekkür ederim component adı çince - mrmarman - 30-04-2019 FMX tarafında Listbox kullanmanızı tavsiye ediyorum. ListView'den beklediğiniz ne özellik varsa Listbox'ta var |