[Treeview]: How to programmatically select...

[Treeview]: How to programmatically select...

Postby hua » Thu Aug 16, 2007 1:29 am

How to programmatically select the very first item of the very first branch of a tree?
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Postby Antonio Linares » Thu Aug 16, 2007 8:14 am

Hua,

You just need to keep a reference to the first item:

oItem1 = oTree:Add( "First one" )

and then, later on, just select it:

oTree:Select( oItem1 )
regards, saludos

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

Postby hua » Wed Aug 22, 2007 8:08 am

Thanks Antonio. I'll give it a try
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

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