prototype Posted September 22, 2011 Share Posted September 22, 2011 Arkadaşlar 1 buton oluşturdum ve buna 2 işlem verdirmek istiyorum nasıl yapacağım bunu birtürlü çözemedim. Örnek kod aşağıda mevcuttur. 1. Tıklamada CheckBox.SetChecked("CheckBox1", true); Bu kodu 2. tıklamada CheckBox.SetChecked("CheckBox1", false); Bu kodu uygulayacak nasıl yapabilirim teşekkürler.. Quote Link to comment Share on other sites More sharing options...
Byogulcan Posted September 22, 2011 Share Posted September 22, 2011 (edited) Mesela bunu ben bi yönünden anlatıyım küçük bi denklem kurman gerekiyor bunu daa önce tnctr de görmüştüm sanki neyse şimdi mesela ogulcan = 0; if ogulcan == 0 then ogulcan = 1; CheckBox.SetChecked("CheckBox1", true); 1. işlemin else ogulcan = 0; CheckBox.SetChecked("CheckBox1", false); 2. işlemin end bu kadar.. Edited September 22, 2011 by Byogulcan Quote Link to comment Share on other sites More sharing options...
prototype Posted September 22, 2011 Author Share Posted September 22, 2011 Olmadı Quote Link to comment Share on other sites More sharing options...
MostWanted Posted September 22, 2011 Share Posted September 22, 2011 Dostum tam olarak yapmak istediğin nedir?Senin sorduğun sorunun cevabını arkadaş verdi başka bir şey arıyosan farklı şekilde anlatmalısın. Quote Link to comment Share on other sites More sharing options...
prototype Posted September 22, 2011 Author Share Posted September 22, 2011 (edited) [quote name='MostWanted' date='22 September 2011 - 21:51 ' timestamp='1316721114' post='1084070'] Dostum tam olarak yapmak istediğin nedir?Senin sorduğun sorunun cevabını arkadaş verdi başka bir şey arıyosan farklı şekilde anlatmalısın. [/quote] bir adet check box ve 1 adet buton koydum butonun on click evresine aşağıdaki kodları koydum. 1.Tıklayışta. CheckBox.SetChecked("CheckBox1", true); 2.Tıklayışta. CheckBox.SetChecked("CheckBox1", false); Kodlarını uygulayacak Yani butona 1. tıklayışta check boxsu seçecek 2. tıklayışta seçili olan check boxun seçimini kaldıracak. Edited September 22, 2011 by prototype Quote Link to comment Share on other sites More sharing options...
g.a Posted September 22, 2011 Share Posted September 22, 2011 [b][color="#FF8C00"]@MostWanted[/color][/b] Arkadaş butona her tıklamada farklı bir işlem yapmak istiyor.Örnek;Keygen Butona birinci tıklamada checbox biri işaretlenmesini ikinci tıkladığımızda checkbox ikinin işaretlenmesi gibi bir şey istiyor. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted September 22, 2011 Share Posted September 22, 2011 Şunu dene, if CheckBox.GetChecked("CheckBox1") then CheckBox.SetChecked("CheckBox1", false); else CheckBox.SetChecked("CheckBox1", true); end Quote Link to comment Share on other sites More sharing options...
prototype Posted September 22, 2011 Author Share Posted September 22, 2011 [quote name='MostWanted' date='22 September 2011 - 22:02 ' timestamp='1316721770' post='1084080'] Şunu dene, if CheckBox.GetChecked("CheckBox1") then CheckBox.SetChecked("CheckBox1", false); else CheckBox.SetChecked("CheckBox1", true); end [/quote] Teşekkürler yapmak istediğim buydu çok sağol.. Quote Link to comment Share on other sites More sharing options...
Byogulcan Posted September 22, 2011 Share Posted September 22, 2011 Bende yanlış yazmısım kodları düzenledim ama arkadaş vermiş ellerine sağlık. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.