korasoglu Posted March 12, 2011 Share Posted March 12, 2011 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. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 12, 2011 Share Posted March 12, 2011 [code]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[/code] Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 12, 2011 Author Share Posted March 12, 2011 hocam maşallah ne bu hız teşekkür ederim müsat iseniz szinle bir şey paylaşacağim Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 12, 2011 Share Posted March 12, 2011 özel bişeyse öm ile gönderebilirsin Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 12, 2011 Author Share Posted March 12, 2011 hocam herhalde özel mesaj dediniz ama hiç göndermedim yardımcı olurmusunuz ben bir link gönderdim elinize ulaştımı Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 12, 2011 Share Posted March 12, 2011 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. Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 12, 2011 Author Share Posted March 12, 2011 hocam birincisi özel mesaj nasıl olur bir anlayım size o zaman daha iyi anlatabilirim. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 12, 2011 Share Posted March 12, 2011 soldaki resmimin altında posta zarfı simgesi var ona tıklayın. Quote Link to comment Share on other sites More sharing options...
qökh4n Posted March 12, 2011 Share Posted March 12, 2011 KintaRo CheckBox'ları kod yazalarak aynı Hizaya Koyulabilir mi? Quote Link to comment Share on other sites More sharing options...
egemynet Posted March 12, 2011 Share Posted March 12, 2011 elbette koyulur ama buna gerek yok checkboxların hepsini işaretle ve alling ile istediğin sıraya sok [img]http://i1203.photobucket.com/albums/bb387/egemynet/ivir_zivir/alling.jpg[/img] Quote Link to comment Share on other sites More sharing options...
qökh4n Posted March 12, 2011 Share Posted March 12, 2011 Sağolun bunu biliyordum. Başka bir yöntem var mı diye Sordum.. Quote Link to comment Share on other sites More sharing options...
egemynet Posted March 12, 2011 Share Posted March 12, 2011 CheckBox.SetPos("CheckBox1", 10, 10); CheckBox.SetPos("CheckBox2", 10, 30); burada 2 checkboxı sayfada soldan 10 piksel olmak üzere birini yukarıdan 10 piksele diğerini yukarıdan 30 piksele hizaladım Quote Link to comment Share on other sites More sharing options...
69sihirbaz69 Posted March 12, 2011 Share Posted March 12, 2011 yav neyce konuşuyorsun8z zerre bişey anlamadım Kintaro modum sizin de anlamadığınız bişey yok usta olmuşssunuz. Maşşallah... Quote Link to comment Share on other sites More sharing options...
qökh4n Posted March 14, 2011 Share Posted March 14, 2011 (edited) 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 March 14, 2011 by qökh4n Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 14, 2011 Share Posted March 14, 2011 o kodları yaz ona göre düzenleyelim Quote Link to comment Share on other sites More sharing options...
qökh4n Posted March 14, 2011 Share Posted March 14, 2011 Yazdım. Hatta örneklere bakarak yaptım Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 14, 2011 Author Share Posted March 14, 2011 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ı Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 14, 2011 Share Posted March 14, 2011 neyi nereye yazdın tam anlamadım Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 14, 2011 Author Share Posted March 14, 2011 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 Quote Link to comment Share on other sites More sharing options...
qökh4n Posted March 14, 2011 Share Posted March 14, 2011 (edited) http://hotfile.com/dl/110232474/7ff289a/rnek.rar.html İlk tıkladığım da 4 adet program seçildi diyo. ikinci tıkladığımdada 0 adet program seçildi olarak nasıl yapabiliriz Edited March 14, 2011 by qökh4n Quote Link to comment Share on other sites More sharing options...
egemynet Posted March 14, 2011 Share Posted March 14, 2011 (edited) 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 March 14, 2011 by egemynet Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 14, 2011 Author Share Posted March 14, 2011 kardeş apz göndersende baksaydıkya Quote Link to comment Share on other sites More sharing options...
egemynet Posted March 14, 2011 Share Posted March 14, 2011 gerek varmı combobox un on select evresine bu kodları yazacaksın çalışacak sana apz hazırlasam bende bunu yapacam yani Quote Link to comment Share on other sites More sharing options...
qökh4n Posted March 14, 2011 Share Posted March 14, 2011 Buyur apz http://hotfile.com/dl/110238443/d75dbba/rnek.rar.html Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 14, 2011 Author Share Posted March 14, 2011 (edited) 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 March 14, 2011 by korasoglu 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.