Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TreeCtrl » IsSelected(id)
IsSelected(id) [message #18942] Sun, 02 November 2008 01:07 Go to previous message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
Hi,

I want to allow users to select items in a TreeCtrl with a single click on one of the items and tried to solve this with a callback for "WhenSel".


void getActiveItem()
{
   Vector<int> elements;

   elements = GetSel();

   TreeCtrl::Node tmp = GetNode(elemets[0]);

   OUTPUT(tmp.key);
   OUTPUT(tmp.value);
   OUTPUT(IsSelected(elements[0]);
}


OUTPUT is a Makro which writes the values to a file. I got the key and the value of the node, but every time a "false" from IsSelected.

Is it possible to get an example for using the method in the right way?

regards

reinhard

[Updated on: Sun, 02 November 2008 01:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cursor doesn't refresh
Next Topic: Bug changing text after node insertion
Goto Forum:
  


Current Time: Thu Apr 18 05:17:02 CEST 2024

Total time taken to generate the page: 0.01905 seconds