HaulTime Posted June 10, 2014 Share Posted June 10, 2014 arkadas mp3 player yapıyorumda checkboxa karısık cal ve tekrar et ekleyemedim bi yardım ederseniz sevinirim :) Quote Link to comment Share on other sites More sharing options...
milano88 Posted June 11, 2014 Share Posted June 11, 2014 forumda örnekler var hiç göz atmadın mı ? Quote Link to comment Share on other sites More sharing options...
HaulTime Posted June 11, 2014 Author Share Posted June 11, 2014 baktım da bi tane vardı hatta ama olmuyo yani checkboxla yapmış mesela tekrarla checkbox seciyom ama olmuyo :) Quote Link to comment Share on other sites More sharing options...
milano88 Posted June 11, 2014 Share Posted June 11, 2014 (edited) . Global Fonksiyona : Tekrarla = false; Karistir = false; function K_T (...) local count = ListBox.GetCount("ListBox1"); if (count ~= 0) then if (Karistir) then sIndex = math.random(1, count); end if (Tekrarla) then sIndex = sIndex; end if (not Karistir and not Tekrarla) then if (sIndex == count) then sIndex = 1; else sIndex = sIndex + 1; end end ListBox.SelectItem("ListBox1", sIndex); PlayMusic (ListBox.GetItemData("ListBox1", sIndex)); end end . Tekrarla CheckBox On Click : if ( CheckBox.GetChecked(this) ) then Tekrarla = true; else Tekrarla = false; end . Karistir CheckBox On Click : if ( CheckBox.GetChecked(this) ) then Karistir = true; else Karistir = false; end . İleri Butonu On Clik : K_T () . ListBox On Double Click : sIndex = ListBox.GetSelectedItem("ListBox1"); Edited June 11, 2014 by milano88 Quote Link to comment Share on other sites More sharing options...
HaulTime Posted June 11, 2014 Author Share Posted June 11, 2014 çok saol kardeşim bu form sayesinde şimdiden çok şey öğrendim allah razı olsun sizden :) 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.