Jump to content

Tek Butonla 2 İşlem Yapma


prototype
 Share

Recommended Posts

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..
Link to comment
Share on other sites

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 by Byogulcan
Link to comment
Share on other sites

[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 by prototype
Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

[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..

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...