Locking node text?

This is a forum focused on providing support for rTree

Moderators: heatherlaine, robinmiller, kevinmiller, wilstrand

Post Reply
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 12
Joined: Wed Feb 23, 2011 1:35 am

Locking node text?

Post by r_houdek » Thu Feb 24, 2011 4:34 am

I'm wondering if there's a simple way to lock the node text. I've tried using the "locktext" property on the field but as soon as I double-click a node it reverts back to editable.

Is there a property that can be set at the tree or node level? Or do I have to try an intercept the message and handle it that way?

Thanks so much!


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

Re: Locking node text?

Post by wilstrand » Thu Feb 24, 2011 11:01 am

Hi Ritch,

To lock the Node text you can set the editNodeOnDoubleClick Tree property to false. You have to create the editNodeOnDoubleClick property yourself as I have (thanks to you!) discovered a bug resulting in that this property is not created automatically at startup. The editNodeOnDoubleClick property is also missing in the documentation!

Thanks for pointing this out! The auto creation and documentation of the editNodeOnDoubleClick property will be fixed in v.1.2 wich will be available as a free update for existing customers at http://www.tapirsoft.com at the end of this week.

Kind regards

Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects

Post Reply

Return to “rTree”