KintaRo Posted May 20, 2010 Share Posted May 20, 2010 Bir buttona ilk tıkladığınızda 1. işlemi, 2. tıkladığınızda 2. işlemi yaptirmak için; Global Functions evresine; nSayi = 0;[/CODE] Button On Click evresine; [CODE]if nSayi == 0 then nSayi = 1; Dialog.Message("mesaj", "bu 1. tıklamanız") -- 1. işlem else nSayi = 0; Dialog.Message("mesaj", "bu 2. tıklamanız") -- 2. işlem end[/CODE] yazmanız yeterli. Dialog.Message kodları yerine yaptirmak istediğiniz kodları yazın. Altyapı: AMS 7.5.1006.0 Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 20, 2010 Share Posted May 20, 2010 Hocam birde şöyle bir sorum var.Şimdi ilk tıklamada icon şu olsun,ikinci tıklamada şu olsun bunu nasıl yapabiliriz. Link to comment Share on other sites More sharing options...
KintaRo Posted May 21, 2010 Author Share Posted May 21, 2010 icon derken neyin iconu? Link to comment Share on other sites More sharing options...
Mytolocia Posted May 21, 2010 Share Posted May 21, 2010 Diyorki mesela medya oynatıcılarda duraklat diyorsun iconu değştiriyor bir dahaki tıklayışda devam et diyorsun icon yine değişiyor. Medya çalarken -- Duraklat Iconu olur Medya Duraklatıldıysa da -- Yürüt butonu olur mesela sanırım bunu söylemek istiyor. Link to comment Share on other sites More sharing options...
casira Posted May 21, 2010 Share Posted May 21, 2010 Button Maker var ams kurulunca birlikte geliyor onunla olur. Tools mnüsünden girebiliyorsunuz. Link to comment Share on other sites More sharing options...
KintaRo Posted May 21, 2010 Author Share Posted May 21, 2010 İşte burda AMS v8'in güzelliklerinden yararlanabilirsiniz. Bildiğiniz üzere v8'de xButton nesnesi geldi. Normal button nesnesine çok benziyor ama buttona resim eklemek gibi bazı farklılıklar gösterebiliyor. Şöyleki; Global Functions evresine; nSayi = 0;[/CODE] xButton On Click Evresine; [CODE]if nSayi == 0 then nSayi = 1; Dialog.Message("mesaj", "bu 1. tıklamanız") -- 1. işlem xButton.SetImage("xButton1", "AutoPlay\\Images\\pause.png") -- resmi değiştir xButton.SetText("xButton1", "Durdur") -- metni değiştir. else nSayi = 0; Dialog.Message("mesaj", "bu 2. tıklamanız") -- 2. işlem xButton.SetImage("xButton1", "AutoPlay\\Images\\play.png") -- resmi değiştir xButton.SetText("xButton1", "Oynat") -- metni değiştir end[/CODE] Proje Dosyası: [CODE]http://www.tamotomatik.org/dosya/xbutton_cifttiklama.zip[/CODE] Altyapı: AMS 8.0.1.0 Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 21, 2010 Share Posted May 21, 2010 Diyorki mesela medya oynatıcılarda duraklat diyorsun iconu değştiriyor bir dahaki tıklayışda devam et diyorsun icon yine değişiyor. Medya çalarken -- Duraklat Iconu olur Medya Duraklatıldıysa da -- Yürüt butonu olur mesela sanırım bunu söylemek istiyor. evet aynen bunu demek istiyorum Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.