tree level

tree level

Postby Natter » Fri Feb 23, 2018 4:39 pm

Hi, all !

There is a ttreeview object of arbitrary nesting. How to find out which level is currently open ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: tree level

Postby Antonio Linares » Fri Feb 23, 2018 4:43 pm

oTree:GetSelected() --> oItem

oItem:Cargo // place here what you may need

Please review FWH\samples\classtre.prg, fiveres.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: tree level

Postby Natter » Fri Feb 23, 2018 5:09 pm

Thanks for your help.
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: tree level

Postby Horizon » Sat Feb 24, 2018 8:02 am

Natter wrote:Hi, all !

There is a ttreeview object of arbitrary nesting. How to find out which level is currently open ?



Hi,

You can use

nLevel := oItem:ItemLevel
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: tree level

Postby nageswaragunupudi » Sat Feb 24, 2018 2:12 pm

oItem:nLevel
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10659
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: tree level

Postby Natter » Sat Feb 24, 2018 9:29 pm

Horizon, Rao thanks !
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: tree level

Postby goosfancito » Sun Feb 07, 2021 10:47 pm

hello

i need know how many child have an item. how i can it?
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: tree level

Postby Antonio Linares » Mon Feb 08, 2021 10:50 am

Gustavo,

Len( oItem:aItems )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 53 guests