olyckor Posted September 24, 2010 Share Posted September 24, 2010 Ben şöyle birşey istiyorum örnek olarak : inputta örnek yazı bırakıyoruzya mesela : Arama bu yazıya tıklayınca hepsini silip baştan yazman gerek ben inputa tıkladığımda o yazının direk silinmesini istiyorum nasıl olcak şimdiden teşekkürler.. Link to comment Share on other sites More sharing options...
xarax Posted September 24, 2010 Share Posted September 24, 2010 input nesnesinde on Click evresine aynı inputa boş yazdır yani "" içini yazı yazmak yerine boş bırak.tıklayınca kendi içinde yazanı boşaltacak.kod olarak vermek isterdim ama şu an böyle bir imkanım yok.PC bozuk başkasının PC den yazıyorum.umarım doğru anlatabilmişimdir. Link to comment Share on other sites More sharing options...
olyckor Posted September 24, 2010 Author Share Posted September 24, 2010 anlamadım.. Link to comment Share on other sites More sharing options...
xarax Posted September 24, 2010 Share Posted September 24, 2010 input nesnesinin adı Input1 olsun o inputın Onclick evresine Input.SetText("Input1",""); yaz çalıştırdığında o inputa tıklayınca kendisinde yazılan yazıyı boşluk ile değiştirecek yani istediğin gibi bir nevi silmiş olacak.kodu doğru yazdım heralde. Link to comment Share on other sites More sharing options...
OzgrGvnc Posted September 24, 2010 Share Posted September 24, 2010 @xarax Mantık doğru ancak İnput objesinin OnClick evresi yoktur. @olyckor O inputun OnFocus evresine şunu yaz. Input.SetText(this, ""); Link to comment Share on other sites More sharing options...
olyckor Posted September 24, 2010 Author Share Posted September 24, 2010 teşekkürler sorun çözüldü Link to comment Share on other sites More sharing options...
spydevil Posted September 25, 2010 Share Posted September 25, 2010 Böle olursa daha sağlıklı olur, öteki türlü ne yazılmışsa inputa tıklandığında silecektir if Input.GetText(this) == "Arama" then Input.SetText(this, ""); end Link to comment Share on other sites More sharing options...
KintaRo Posted September 25, 2010 Share Posted September 25, 2010 evet bu daha doğru olur, sadece Arama yazdığında içindeki metni siler diğer türlü olursa sürekli siler. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.