Print Page | Close Window

Correct way to track tree ctrl selection changes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=22178
Printed Date: 12 May 2024 at 1:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Correct way to track tree ctrl selection changes
Posted By: Norbini
Subject: Correct way to track tree ctrl selection changes
Date Posted: 23 January 2014 at 9:29am
Hi,

  I'm trying out the trial version of Toolkit Pro (really I'm just interested in Controls), and evaluating whether the XTPTreeCtrl is suitable for my purposes.
  I need to keep the tree control selection (with multiple selections enabled) synchronized with another GUI element in my application.

  I'm imagining that I need to:
    1. Call SelectItems() when my other element wants to change the tree's selection
    2. Listen to some event will tell me about selection changes when the user interacts with the tree control.

  I wanted to know what the official way of tracking the selection changes would be. I just couldn't see anything about this in the documentation (or I'm looking in the wrong place!).

  Is it also possible to veto changes to the selection, how would this be achieved?

  Many thanks in advance,
    -Nige

  



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