milano88 Posted December 3, 2010 Share Posted December 3, 2010 hocam müzik player yaptım herşey tamam sadece altta search bölümü koymak istiyorum yazınca çalma listesindeki parçaların içinde varsa bulsun ve bilirsin siz çözersiniz eminim hocam Link to comment Share on other sites More sharing options...
KintaRo Posted December 3, 2010 Share Posted December 3, 2010 [quote]http://www.tnctr.com/topic/156218-listbox-ve-arama[/quote] şu konuya bi bakın eğer olmazsa yeni birşey yaparız Link to comment Share on other sites More sharing options...
milano88 Posted December 3, 2010 Author Share Posted December 3, 2010 oradaki data.ini dosyasında listboxtaki isimler yazıyor hocam kısacası işime yaramıyor ben bilgisayardan bir klasör gösteriyorum ve içinde atıyorum 200 adet şarkı var bunlar çıkınca bunların içinden bulmasını istiyorum Link to comment Share on other sites More sharing options...
KintaRo Posted December 3, 2010 Share Posted December 3, 2010 yani listboxdaki veriler içindemi arama yapacak? Link to comment Share on other sites More sharing options...
milano88 Posted December 3, 2010 Author Share Posted December 3, 2010 evet hocam aynen winampı düşünün çalma listesinde şarkılar oluyor alttada ara var ona isim yazıyosun beliriyor resimdeki gibi [img]http://i56.tinypic.com/2hnz38j.png[/img] Link to comment Share on other sites More sharing options...
KintaRo Posted December 3, 2010 Share Posted December 3, 2010 Şu kodu input> on key evresine yazarsan istediğin olacak sanırım: [codebox]sMetin = Input.GetText(this) nCount = ListBox.GetCount("ListBox1") for i=1,nCount do sText = ListBox.GetItemText("ListBox1", i) nAra = String.Find(sText, sMetin, 1, false) if nAra ~= -1 then ListBox.SelectItem("ListBox1", i) end end [/codebox] Örnek dosyada şurda: [codebox]http://www.tamotomatik.org/dosya/listbox_arama2.rar[/codebox] Link to comment Share on other sites More sharing options...
KintaRo Posted December 3, 2010 Share Posted December 3, 2010 eğer Listbox özelliklerinden multiple selection'u işaretler ve alttaki kodları kullanırsan bu seferde inputa yazdığın metni içeren tüm öğeleri seçili hale getirir: [codebox]sMetin = Input.GetText(this) nCount = ListBox.GetCount("ListBox1") for i=1, nCount do ListBox.DeselectItem("ListBox1", i) end for i=1,nCount do sText = ListBox.GetItemText("ListBox1", i) nAra = String.Find(sText, sMetin, 1, false) if nAra ~= -1 then ListBox.SelectItem("ListBox1", i) end end [/codebox] Link to comment Share on other sites More sharing options...
milano88 Posted December 3, 2010 Author Share Posted December 3, 2010 Hocamız gerçekten çok çalışıyor değerini bilin arkadaşlar sağolun tekrardan.Teşekkür etmiyorum yalnız o yüzden butonu kullanın demenize gerek yok şaka,şaka 10 numarasınız vallaha Link to comment Share on other sites More sharing options...
KintaRo Posted December 3, 2010 Share Posted December 3, 2010 [quote name='milano88' date='03 Aralık 2010 - 17:43 ' timestamp='1291391581' post='920802'] Hocamız gerçekten çok çalışıyor değerini bilin arkadaşlar sağolun tekrardan.Teşekkür etmiyorum yalnız o yüzden butonu kullanın demenize gerek yok şaka,şaka 10 numarasınız vallaha [/quote] Valla elimden geldiğince AMS nin TR'deki gelişimine katkıda bulunmak ve AMS'nin AIO'lardan farklı amaçlarla kullanılmasını sağlamaya çalışıyorum. Umarım başarılı oluyorumdur. Teşekkürler Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.