Print Page | Close Window

Multi-Select Tree Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4998
Printed Date: 29 April 2025 at 2:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi-Select Tree Control
Posted By: karim
Subject: Multi-Select Tree Control
Date Posted: 08 September 2006 at 9:52am
I'm using the CXTPTreeCtrl class in an application and I have it set to allow multiple selects.  You can also drag/drop tree items.  The problem i'm having is that if you've got multiple items selected that are not contiguous in the tree then you try to click and drag them by clicking on one of the selected items, it will deselect all but the clicked on item and begin the drag. 

If you have more than one item that are contiguous in the tree, and do the same thing, it won't have the problem. 

Update: I recently discovered that there's more to it than that:
If you have the following items in the tree:

node1  < 1st selection
node2
node3  < 2nd selection

then try to drag node1, it works fine.  If you do the same and try to drag node 3, it will deselect node1.  So it looks like if you click on a selected node that doesn't have focus, it will work okay.  Otherwise, it will deselect the others.

If you look at the TreeCtrl sample that's part of the 10.3 installation, you will be able to reproduce the issue.

Does anyone know if there's an easy workaround for this problem?  Is it a problem or is this expected behaviour? 

Thanks,
Karim




-------------
Karim Shehadeh
Verint Video Solutions
http://www.verint.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net