yasesa Posted January 18, 2012 Share Posted January 18, 2012 merhaba; kurulacak proğramları seçip kur butonuna basınca bir liste çıksın ve seçtiğim proğramların isimlerini yazsın ve bu proğramları kurmak istediğinizden eminmisiniz diye sorsun evet derseniz kursun. hayır derseniz bişey yapmadan proğramları seçtiğimiz sayfaya geri dönsün istiyorum. ben bunu Dialogs ile yaptım Dialog1 oluşturdum ve içine Paragraph1 yaptım ikitanede buton kodum. anasayfada seçtiğim CheckBox ları liste.txt içerisinde biriktiriyor kur butonuna bastığımdada Dialogs penceresi açılıyor ve orda Paragraph1 içnde seçmiş olduğum proğramlar listesini gösteriyor. bu istediğimi uzun uğraşlar sonucunda yaptım. ben bu işi Dialogs ile değil Dialog.Message ile yapmak istedim beceremedim. bu yapmaya çalıştığım şey [b]Dialog.Message[/b] ile yapmak mümkünmüdür. benim Dialogs ile yapmış olduğum apz linkini veriyorum.. http://www.mediafire.com/?mdzizmwwjon teşekkür ederim. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted January 18, 2012 Share Posted January 18, 2012 Şuanda ams yok yanımda ama Dialog.Message("Bilgi","Avafind\r\nOfiice\r\n"); diye yapabilirsin sanırım. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 18, 2012 Share Posted January 18, 2012 Biraz söyle örnek projelere baksan.Tam anlamıyla dediğin yapılır da bir ön hazırlık vs. Lazım Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 18, 2012 Author Share Posted January 18, 2012 [quote name='pilgetir' date='18 January 2012 - 11:36 ' timestamp='1326886571' post='1142409'] Şuanda ams yok yanımda ama Dialog.Message("Bilgi","Avafind\r\nOfiice\r\n"); diye yapabilirsin sanırım. [/quote] ben tek tek değil liste halinde hepsini birkerede göstermisini istiyorum. tabi seçili olanlarını göstermesini istiyorum. mesaj = CheckBox.GetText("CheckBox1"); Dialog.Message("Notice", mesaj, MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); bu şekilde yazdırıyorum. ama 5 tane olupta sadece [b]seçili olanlarının hepsini birde [/b]yazdırmaya geilince iş karışıyor birtürlü yaptıramadım. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 18, 2012 Share Posted January 18, 2012 (edited) [quote]mesaj = CheckBox.GetText("CheckBox1"); mesaj2 = CheckBox.GetText("CheckBox2"); mesaj3 = CheckBox.GetText("CheckBox3"); Dialog.Message("Notice", mesaj.."\r\n"..mesaj2.."\r\n".."mesaj3, MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);[/quote] Edited January 18, 2012 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 18, 2012 Author Share Posted January 18, 2012 [quote name='ReaLyMaN' date='18 January 2012 - 12:14 ' timestamp='1326888854' post='1142428'] Biraz söyle örnek projelere baksan.Tam anlamıyla dediğin yapılır da bir ön hazırlık vs. Lazım [/quote] ben baya bir örnek inceledim ama bunu kullanan kimse bulamadım. bende yapmaya çalıştım. bir kaç denemeden sonra benim gibi bilmeyen biri için zor bir iş olduğuna karar verdim. ama sonuçta başka yollada olsa istediğime ulaştım. eğer birgün buna örnek görür veya hazırlarsanız benimle paylaşın öğrenmek istiyorum. ilginiz için teşekkürler. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 18, 2012 Share Posted January 18, 2012 Şimdi checkboxdaki isimleri listeleyip kurmak istiyor musunuz der fakat liste kabarık olunca baya bir uzun olur Akşama nasip olursa size ufak bir örnek hazırlarım Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 18, 2012 Author Share Posted January 18, 2012 mesaj = CheckBox.GetText("CheckBox1"); mesaj2 = CheckBox.GetText("CheckBox2"); mesaj3 = CheckBox.GetText("CheckBox3"); Dialog.Message("Notice", mesaj.."\r\n"..mesaj2.."\r\n".."mesaj3, MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); bu şekildede yaptım ama 2 ayrı sorun var 1. sorun seçilsede yazıyor seçilmesede yazdırıyor proğramın insimini. bunu aşmak kolay oldu if ile bu sorun kolayca aştım. seçli değilse atlıyor. 2.sorun Dialog.Message mesaj, mesaj1, mesaj2 gibi sıra ile yazdığım için buseferde eğer seçili değilse mesajda o satırda boşluk kalıyor örneğin. 1. proğram 2. proğram 4. proğram 3. proğramı seçedeğim zamanda yukardaki gibi yazıyor seçmediklerimin yerinde boşluk kalıyor. Quote Link to comment Share on other sites More sharing options...
NotToday Posted January 18, 2012 Share Posted January 18, 2012 onun için kontrol etmen lazım.Mesela [quote]secilen = CheckBox.GetChecked("CheckBox1"); if secilen== true then Dialog.Message("Notice", "Seçili", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); else Dialog.Message("Notice", "Seçili Değil !", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); end[/quote] Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 18, 2012 Author Share Posted January 18, 2012 (edited) [quote name='ReaLyMaN' date='18 January 2012 - 12:50 ' timestamp='1326891025' post='1142477'] onun için kontrol etmen lazım.Mesela [/quote] 1 tane CheckBox olursa sorun yok onu yazdırıyorum. sorun 5 tene olursa ve seçili olanların hepsini tek Dialog.Message ile gösteremeye kalkınca karışıyor. 5 proğramdan 3 seçili ise nasıl yapılacak orası çok karışık. örneğin 5 ayrı proğramdan 1,3,5 seçil olsun diyalog meajda 1. proğram 3. proğram 5. proğram arada boşluk bırakmadan yazdırmak çok zor. Edited January 18, 2012 by yasesa Quote Link to comment Share on other sites More sharing options...
gaffurtr Posted January 18, 2012 Share Posted January 18, 2012 Dialog message yerine listbox kullan bence hem tasarım olarak ve algoritma olarak kolaylık sağlar Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 18, 2012 Author Share Posted January 18, 2012 [quote name='gaffurtr' date='18 January 2012 - 13:27 ' timestamp='1326893228' post='1142487'] Dialog message yerine listbox kullan bence hem tasarım olarak ve algoritma olarak kolaylık sağlar [/quote] küçükte olsa bir örnek vere bilirmisin. ben listbox hiç kullanmadım verdiğin örnekten mantığını çözmeme yardımcı olur. Quote Link to comment Share on other sites More sharing options...
yasesa Posted January 18, 2012 Author Share Posted January 18, 2012 (edited) ben şöyle bişey yaptım ve çalıştı. CheckBox ların hepsine TextFile.WriteFromString("AutoPlay\\Docs\\liste.txt", "1. Program \r\n", true) -- program adını txte yazdır kur butonuna cGet1 = CheckBox.GetChecked("CheckBox1") cGet2 = CheckBox.GetChecked("CheckBox2") cGet3 = CheckBox.GetChecked("CheckBox3") liste = TextFile.ReadToString("AutoPlay\\Docs\\liste.txt") --burda txt deki verileri liste değişkenine aktarılıyor. if cGet1 or cGet2 or cGet3 then -- eğer herhangi biri seçilmişse Dialog.Message("Notice", liste, MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1); --burdada listenin içeriği gösteriliyor. end TextFile.WriteFromString("AutoPlay\\Docs\\liste.txt", "", false) --burdada txt dosyasının içerisi temizleniyor. kabaca buşekilde yaptığımızda çalışıyor. benim bulduğum yöntem bu. başka yolu varsada sanırım beni aşıyor. Edited January 18, 2012 by yasesa Quote Link to comment Share on other sites More sharing options...
gaffurtr Posted January 18, 2012 Share Posted January 18, 2012 [quote name='yasesa' date='18 January 2012 - 14:29 ' timestamp='1326896982' post='1142513'] küçükte olsa bir örnek vere bilirmisin. ben listbox hiç kullanmadım verdiğin örnekten mantığını çözmeme yardımcı olur. [/quote] Yalnız bende yeniyim bu ams de ancak öle daha kolay olur diye düşündüm 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.