Setting the highlight of a node in 2.x

This is a forum focused on providing support for rTree

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
Mike Doub
Posts: 2
Joined: Mon Aug 26, 2013 6:49 pm

Setting the highlight of a node in 2.x

Post by Mike Doub » Fri Mar 28, 2014 9:51 pm

What is the correct way to build a tree from an array and have a particular node show up as being highlighted?

If the tree was already build, what would be the proper way to set the highlight of a node?

Thanks
Mike

wilstrand
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Mon Jan 03, 2011 3:02 pm
Contact:

Re: Setting the highlight of a node in 2.x

Post by wilstrand » Sat Mar 29, 2014 9:21 pm

Hi Mike!

You set and get the hilitedNodeIDs like this:

Code: Select all

set the hilitedNodeIDs of grp "rTree" to "Node 1,Node3"
get the hilitedNodeIDs of grp "rTree"
You can set the hilitedNodeIDs as either a comma or cr separated list.
The hilitedNodeIDs are returned as a cr separated list.

Best
Mats
http:www.tapirsoft.on-rev.com
Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects

Locked

Return to “rTree”