turning off ability to drag or reorder nodes

This is a forum focused on providing support for rTree

Moderators: heatherlaine, robinmiller, kevinmiller, wilstrand

Post Reply
jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 256
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

turning off ability to drag or reorder nodes

Post by jameshale » Thu Feb 06, 2014 2:06 am

What property turns of the ability to drag nodes around?
Its a brilliant feature but I don't want it in my application.

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

Re: turning off ability to drag or reorder nodes

Post by wilstrand » Thu Feb 06, 2014 10:44 pm

Hi James!

There is no setting to turn the drag and drop off. So you have to trap the dragStart message in the rTree group script:

Code: Select all

on dragStart
   # Trap
end dragStart
Kind regards
Mats
http:www.tapirsoft.on-rev.com
Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 256
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: turning off ability to drag or reorder nodes

Post by jameshale » Thu Feb 06, 2014 10:56 pm

Ah ah, simple.

Thanks

Post Reply

Return to “rTree”