Home » U++ Library support » TreeCtrl » IsSelected(id)
IsSelected(id) [message #18942] |
Sun, 02 November 2008 01:07 |
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
|
|
|
Goto Forum:
Current Time: Sat Sep 21 03:01:28 CEST 2024
Total time taken to generate the page: 0.08252 seconds
|