[Treeview]: How to programmatically select...

Post Reply
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

[Treeview]: How to programmatically select...

Post by hua »

How to programmatically select the very first item of the very first branch of a tree?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Post by hua »

Thanks Antonio. I'll give it a try
Post Reply