korasoglu Posted March 8, 2014 Share Posted March 8, 2014 Arkadaşlar Treelistte sub index'e birşeyler eklenince seçilince veya check yapılınca nasıl görev atarız yani filanSunindexi seçtiniz gibi. Farklı sutunlara farklı verileri nasıl ekleriz güzel bir örnek olsa harika olur yardımınızı bekliyorum. Benim elimdeki kod demeti: TreeList.AddColumn("Plugin1", "Baslik", 100); ustbaslik = INIFile.GetSectionNames(_DesktopFolder .."\\aaa.ini"); for ini,bak in pairs(ustbaslik)do altbaslik = INIFile.GetValueNames(_DesktopFolder .."\\aaa.ini", bak); TreeList.AddRow("Plugin1", bak,nil, nil, nil); for nedir,soyle in pairs(altbaslik) do TreeList.AddRow("Plugin1", soyle, nil, 1, nil); end end Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted March 9, 2014 Share Posted March 9, 2014 (edited) TreeList.GetSubLevel kodunu inceleyin. Örneğin GetSubLevel ile alt satır olduğunu alırsınız data ilede kontrol yaptırırsınız Edited March 9, 2014 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted March 10, 2014 Editor Share Posted March 10, 2014 result = TreeList.GetCellText("Plugin1", e_Row, e_Column); result = Dialog.Message("", result); On Double Click kısmı. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 10, 2014 Share Posted March 10, 2014 http://yadi.sk/d/2JLDzzQhKEnBn Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 12, 2014 Author Share Posted March 12, 2014 (edited) Kintaro gezül bir örnek olmuş anlaşılır tşk ederim check olması önemli değil tıklanan veya check yapılan satırın adını nasıl çeker ve değiştirebilirim. Edited March 13, 2014 by korasoglu Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 13, 2014 Share Posted March 13, 2014 Adını derken? her satır data ya ve sıra noya sahiptir, yalnızca bunları çekebilirsiniz, ekstra olarak o satırdaki hücrelerin metinlerini alabilirsiniz. hangisi lazım? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted March 13, 2014 Editor Share Posted March 13, 2014 Metinlerini değiştirmeyi kast etmiş sanırım. Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 13, 2014 Share Posted March 13, 2014 Metinleri değiştirmekse amaç; TreeList.SetCellText() ile hangi satır ve sütundaki hücreyi değiştirmek istiyorsa değiştirebilir, satır kontrollerini, o an hangi satırın seçili veya checked olduğunu bulmayı yukarıdaki örnek projede göstermiştim zaten. Quote Link to comment Share on other sites More sharing options...
korasoglu Posted March 13, 2014 Author Share Posted March 13, 2014 yani başlangıç sıfır olduğuna göre veri lazım olursa 6.datası veya 6.satırın textini değiştir diyeceğiz anlaşılan. Ben şunu demiştim Üst satir karaman Eczaneleri alt satır filan eczane filan eczane ... devam ediyor. Diyelimki 15 satırdaki x eczanesini ssilecem veya texttini değiştirecem onu demiştim. 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.