Jump to content

Alt Satırın Seçildiğini Anlamak


nightmare3519
 Share

Recommended Posts

sanırım yanlış anladım, eğer üzerine sağ tıklayınca dediğini algılamasını istiyorsan şu şkilde olabilir:

secili = TreeList.GetSelected("Plugin1")

satir = TreeList.GetRowSubLevel("Plugin1", secili)

if satir == 1 then
-- alt satir
elseif == 0 then
-- ust satir
end 

tabi satirlari şu şekilde eklediğini varsayıyorum:

 

TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 0, nil)
TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 1, nil)
TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 1, nil)
TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 0, nil)

t2suXQq.png

Link to comment
Share on other sites

 

sanırım yanlış anladım, eğer üzerine sağ tıklayınca dediğini algılamasını istiyorsan şu şkilde olabilir:

secili = TreeList.GetSelected("Plugin1")

satir = TreeList.GetRowSubLevel("Plugin1", secili)

if satir == 1 then
-- alt satir
elseif == 0 then
-- ust satir
end 

tabi satirlari şu şekilde eklediğini varsayıyorum:

 

TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 0, nil)
TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 1, nil)
TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 1, nil)
TreeList.AddRow("Plugin1", "sutun 1" .. "|" .. "sutun2", nil, 0, nil)

t2suXQq.png

 

Abi peki alt satırın hangi saatin alt satırı olduğunu nasıl anlayabilirim?

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