FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour [Treeview]: How to programmatically select...
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
[Treeview]: How to programmatically select...
Posted: Thu Aug 16, 2007 01:29 AM

How to programmatically select the very first item of the very first branch of a tree?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
[Treeview]: How to programmatically select...
Posted: Thu Aug 16, 2007 08: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
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
[Treeview]: How to programmatically select...
Posted: Wed Aug 22, 2007 08:08 AM

Thanks Antonio. I'll give it a try

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion