Jump to content

Yeni Pencere Açmak


hakan3406
 Share

Recommended Posts

Bunu dialog ile yapabilirsin şimdi öncelikle kişi bilgilerini kaydedelim.Bir dilaog,4 adet ınput ve iki adet buton ve dialog sayfasında bir adet listbox oluştur.

Bilgileri aç butonu;
[quote]DialogEx.Show ("Dialog1");[/quote]

Kaydet butonu onclick;

[quote]strAd = Input.GetText("ad")
strTel = Input.GetText("tel")
strVd = Input.GetText("adres")
strVno = Input.GetText("email")

if strAd ~= "" and strTel ~= "" and strVd ~= "" and strVno ~= "" and strAdres ~= "" then
INIFile.SetValue("Autoplay\\Docs\\kayit.ini", strAd, "ad", strAd)
INIFile.SetValue("Autoplay\\Docs\\kayit.ini", strAd, "tel", strTel)
INIFile.SetValue("Autoplay\\Docs\\kayit.ini", strAd, "adres", strVno)
INIFile.SetValue("Autoplay\\Docs\\kayit.ini", strAd, "email", strVd)
Dialog.Message("Program", "Bilgileri Kaydedildi!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1)
DialogEx.Close()
Input.SetText("ad", "")
Input.SetText("tel", "")
Input.SetText("adres", "")
Input.SetText("email", "")

else
Dialog.Message("Hata", "Lütfen Gerekli Alanları Doldurunuz!", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1)
end
[/quote]
Dialog1 sayfasının on show bölümüne;
[quote]ad = INIFile.GetValue("AutoPlay\\Docs\\kayit.ini", "Mert", "ad");
ListBox.AddItem("ListBox1", "Ad Soyad: "..ad, "");
tel = INIFile.GetValue("AutoPlay\\Docs\\kayit.ini", "Mert", "tel");
ListBox.AddItem("ListBox1", "TelNo: "..tel, "");
adres = INIFile.GetValue("AutoPlay\\Docs\\kayit.ini", "Mert", "adres");
ListBox.AddItem("ListBox1", "Adres: "..adres, "");
email = INIFile.GetValue("AutoPlay\\Docs\\kayit.ini", "Mert", "email");
ListBox.AddItem("ListBox1", "E-mail: "..email, "");
[/quote]

Link to comment
Share on other sites

Hocam, Page1'de bir tane Tree1 nesnem ve 1 adet Dialog1 pencerem var. Tree1 nesnesinin items ları şöyle;
1. Hakan CANBAY
1.1. Resimler
1.2. Video

2. Erva AYDOĞDU
2.1. Resimler
2.2. Video

3-4-5 .... 30 a kadar gidiyor.

Benim yapmak istediğim;
Sadece 1 adet Dialog kullanarak (2 adette olabilir: resim ve videolar için ayrı ayrı) Page1 deki Tree1 nesnesinde;
1.1 'e tıkladığımda; Dialog1 de Hakan CANBAY'a ait resimler
1.2 'e tıkladığımda; Dialog1 (veya Dialog2) de Hakan CANBAY'a ait video
2.1 'e tıkladığımda; Dialog1 de Erva AYDOĞDU'ya ait resimler
2.2 'e tıkladığımda; Dialog1 (veya Dialog2) de Erva AYDOĞDU'ya ait video görüntülensin istiyorum.

Takıldığım yer: Tree nesnesindeki koşulu Dialogda nasıl komutlaştırabilirim?

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