Jump to content

Combobox


korasoglu
 Share

Recommended Posts

Şöyle düşün Comboda Kuranı kerimin tüm sürelerinin adi item olarak yüklü data olarak ta ayet sayısı yüklü. Kullanıcı atıyorum yasın yazdımı combada onu arayacak. Veya önerin nedir onuda söyle değerlendirelim.

 

 

 

Şu konudada yarcımcı olursanız sevinirim.

 

sure = ComboBox.GetSelected("ComboBox1");
sureismi = ComboBox.GetItemText("ComboBox1", sure);
ayet = ComboBox.GetSelected("ComboBox2");
ayetoku = ComboBox.GetItemText("ComboBox2", ayet);
ListBox.DeleteItem("ListBox1", -1);
ara = _SourceFolder .. "\\AutoPlay\\Hatim" .. "\\" .. sureismi;
tblFiles = File.Find(ara , "*.mp3", true, false, nil, nil);
if tblFiles then
tListe = {}
    for i,v in pairs (tblFiles) do
        local tblSplit = String.SplitPath(v)
        ListBox.AddItem("ListBox1", tblSplit.Filename, v);
        Table.Insert(tListe, Table.Count(tListe)+1, v)
        end
end
 

Burda seçtiğim item hangisi ise Listboxtada onu seçmesini istiyorum çünkü seçilince o ayet okumaya başlıyacak. Benim için ComboBox ta seçilen satır ne ise listBoxtada o seçilsin yeterli

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