Jump to content

Treelist Subındex


korasoglu
 Share

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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