Jump to content

Tüm Kutucukları Kaldırtma Ve Önerilen Programlar


baba18
 Share

Recommended Posts

Merhaba
Arkadaşlar şöyle bi problemim var programlar CheckBox ları tamam hepsini seçtirip kurdurabiliyorum

Ancak kutucugu kaldırdıgım zaman hepsi yine seçili kalıyor.

Birde Program Kurulurken Sagda Veya Ekranın Ortasında Resim Eklenebiliyormu...

Kod Yapısı Şu Şekilde Tümünü Seç CheckBox

CheckBox.SetChecked("CheckBox1", true)
CheckBox.SetChecked("CheckBox2", true)
CheckBox.SetChecked("CheckBox3", true)
CheckBox.SetChecked("CheckBox4", true)
CheckBox.SetChecked("CheckBox5", true)
CheckBox.SetChecked("CheckBox6", true)
CheckBox.SetChecked("CheckBox7", true)
CheckBox.SetChecked("CheckBox8", true)
CheckBox.SetChecked("CheckBox9", true)
CheckBox.SetChecked("CheckBox10", true)
CheckBox.SetChecked("CheckBox11", true)
CheckBox.SetChecked("CheckBox12", true)
CheckBox.SetChecked("CheckBox13", true)
CheckBox.SetChecked("CheckBox14", true)
CheckBox.SetChecked("CheckBox15", true)
CheckBox.SetChecked("CheckBox16", true)
CheckBox.SetChecked("CheckBox17", true)
CheckBox.SetChecked("CheckBox18", true)
CheckBox.SetChecked("CheckBox19", true)
CheckBox.SetChecked("CheckBox20", true)
CheckBox.SetChecked("CheckBox21", true)
CheckBox.SetChecked("CheckBox22", true)
CheckBox.SetChecked("CheckBox23", true)
secme("CheckBox1")
secme("CheckBox2")
secme("CheckBox3")
secme("CheckBox4")
secme("CheckBox5")
secme("CheckBox6")
secme("CheckBox7")
secme("CheckBox8")
secme("CheckBox9")
secme("CheckBox10")
secme("CheckBox11")
secme("CheckBox12")
secme("CheckBox13")
secme("CheckBox14")
secme("CheckBox15")
secme("CheckBox16")
secme("CheckBox17")
secme("CheckBox18")
secme("CheckBox19")
secme("CheckBox20")
secme("CheckBox21")
secme("CheckBox22")
secme("CheckBox23")
Link to comment
Share on other sites

tümünü seç ve brıak için tüm checkboxlari tek tek seçili veya seçili dğeil şeklinde belirtmenize gerek yok. Döngü kullanırsanız işiniz kolaylaşır.

20 Adet CheckBox'ımız var diyelim ve Metni "Tümünü Seç" olsun, kodlar şu şekilde olmalı:

[CODE]bChecked [COLOR="#FF0000"]=[/COLOR] CheckBox[COLOR="#FF0000"].[/COLOR]GetChecked(this)
[COLOR="#0000FF"]if[/COLOR] bChecked [COLOR="#0000FF"]then[/COLOR]
CheckBox[COLOR="#FF0000"].[/COLOR]SetText(this[COLOR="#FF0000"],[/COLOR] [COLOR="#800080"]"Tüm Seçimi Kaldır"[/COLOR])
[COLOR="#0000FF"]for[/COLOR] i[COLOR="#FF0000"]=[/COLOR][COLOR="#000000"]1[/COLOR][COLOR="#FF0000"],[/COLOR][COLOR="#000000"]20[/COLOR] [COLOR="#0000FF"]do[/COLOR]
CheckBox[COLOR="#FF0000"].[/COLOR]SetChecked([COLOR="#800080"]"CheckBox"[/COLOR] [COLOR="#FF0000"]..[/COLOR] i[COLOR="#FF0000"],[/COLOR] [COLOR="#0000FF"]true[/COLOR])
[COLOR="#0000FF"]end[/COLOR]
[COLOR="#0000FF"]else[/COLOR]
CheckBox[COLOR="#FF0000"].[/COLOR]SetText(this[COLOR="#FF0000"],[/COLOR] [COLOR="#800080"]"Tümünü Seç"[/COLOR])
[COLOR="#0000FF"]for[/COLOR] i[COLOR="#FF0000"]=[/COLOR][COLOR="#000000"]1[/COLOR][COLOR="#FF0000"],[/COLOR][COLOR="#000000"]20[/COLOR] [COLOR="#0000FF"]do[/COLOR]
CheckBox[COLOR="#FF0000"].[/COLOR]SetChecked([COLOR="#800080"]"CheckBox"[/COLOR] [COLOR="#FF0000"]..[/COLOR] i[COLOR="#FF0000"],[/COLOR] [COLOR="#0000FF"]false[/COLOR])
[COLOR="#0000FF"]end[/COLOR]
[COLOR="#0000FF"]end[/COLOR][/CODE]

Bu kod, tümünü seç ve bırak işlemini yapacak ve kendi metnini ona göre değiştirecektir.

Link to comment
Share on other sites

yazılan checkbox'un id'sinin adı this olarak kullanılabiliyor. Yani;
bChecked = CheckBox.GetChecked(this)
aynı zamanda
bChecked = CheckBox.GetChecked(CheckBox1)
değerini alabiliyor. Hangi elemanda this komutunu kullanırsan onun adını alırsın.

Link to comment
Share on other sites

this = bu
bir öğeye kod girerken o öğeyle ilgili bir komut yazıyorsanız, örneğin:
CheckBox.GetChecked(this) = bu checkboxın seçili olup olmadığını kontrol et anlamındadır.
yani öğenin adını girmeniz gereken yerde ("checkbox1" gibi) this yazarak checkbox1 yerine kullanabilirsiniz.

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