Jump to content

ComboBox'a Görev Atamak


korasoglu
 Share

Recommended Posts

sevgili hocalarım şu kodu buldum

tMetin = TextFile.ReadToTable("AutoPlay\\Docs\\dosya.txt")

if tMetin ~= nil then
for i in pairs(tMetin) do
ComboBox.AddItem("ComboBox1", tMetin[i], "")
end
ComboBox.SetSelected("ComboBox1", 1)
end

combo değer, txtden sıralı bir şekilde alıyor diyelimki birde tnctr ikide korasoglu görev nasıl atarız.
Link to comment
Share on other sites

Yanlış yere göndermişsin ama ben aldım mesajı neyse. Projeye baktım bu şekilde 30 sayfa yapmak ömrünü yer adamın çok zor yoldan gidiyosun listbox, listicon gibi başka bi nesne ile ile girişmen lazım bu işe. Yoksa içinden çıkamazsın.

Link to comment
Share on other sites

KintaRo Ben bi butona 2 görev verdim.İlk tıkladığım da CheckBox'ların tümünü Seçiyo, ikinci sefer tıkladığımda ise seçimleri kaldırıyor.Ben butonu İlk tıkladığım da mesela 12 tane seçildi diye bilgi veriyo,ikinci sefer tıkladığımda ise 0 program seçildi diye nasıl yapabilirim

Edited by qökh4n
Link to comment
Share on other sites

hocam
ComboBox
On Focus
tMetin = TextFile.ReadToTable("AutoPlay\\Docs\\zorunlu\\zorunlu\\dosya.txt")
if tMetin ~= nil then
for i in pairs(tMetin) do
ComboBox.AddItem("ComboBox1", tMetin[i], "")
end
ComboBox.SetSelected("ComboBox1", 1)

end
----------------
On Select
On Focusa

nSelected = ComboBox.GetSelected("ComboBox1")

if nSelected == 1 then

Dialog.Message("Hey", "tnctr seçildi")

elseif nSelected == 2 then

Dialog.Message("Hey", "korasoglu seçildi")

end

olmadı

Link to comment
Share on other sites

hocam ComboBox On Focus evresine yazdığım

tMetin = TextFile.ReadToTable("AutoPlay\\Docs\\zorunlu\\zorunlu\\dosya.txt")
if tMetin ~= nil then
for i in pairs(tMetin) do
ComboBox.AddItem("ComboBox1", tMetin[i], "")
end
ComboBox.SetSelected("ComboBox1", 1)
---------
bu şekilde textten değer alıyor buraya kadar sorun yok ComboBox birinci sıradaki değeri seçince görev ikinci...
onuda On Focus Evresinede On Select evresine
nSelected = ComboBox.GetSelected("ComboBox1")

if nSelected == 1 then

Dialog.Message("Hey", "tnctr seçildi")

elseif nSelected == 2 then

Dialog.Message("Hey", "korasoglu seçildi")

ComboBox açılmadan dialog çıkıyor

Kısaca bir iniye kayıt yapılacak o kayıt ComboBox dan Görüntülenecek ve Görev yapacak

Link to comment
Share on other sites

secilen = ComboBox.GetSelected("ComboBox1")
sec = ComboBox.GetItemText("ComboBox1", secilen);

if sec == 1 then
Dialog.Message("Hey", "tnctr seçildi")
elseif sec == 2 then
Dialog.Message("Hey", "korasoglu seçildi")
end

bu şekilde denermisin bide

Edited by egemynet
Link to comment
Share on other sites

sevgili gökh4an

tümünü seçe şunu dene

if nMilano88 == 0 then
nMilano88 = 1;
CheckBox.SetChecked("CheckBox1", true)
CheckBox.SetChecked("CheckBox2", true)
CheckBox.SetChecked("CheckBox3", true)
CheckBox.SetChecked("CheckBox4", true)
nMilano88 = 4;
else
nMilano88 = 0;
CheckBox.SetChecked("CheckBox1", false)
CheckBox.SetChecked("CheckBox2", false)
CheckBox.SetChecked("CheckBox3", false)
CheckBox.SetChecked("CheckBox4", false)
nMilano88 = 0;
end

Edited by korasoglu
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...