The message you are replying to and its parents are listed in the reverse order with the most recent posts first. This might not be the whole discussion thread. To read all the messages in this thread please click here.
Re: Selection returns previously selected item ID.
| Jeff Hobbs | 08 Jul 2009 19:39 |
> when I invoke selection method for the tree item selected, I get > previously selected tree item. [quoted text clipped - 5 lines] > > Can someone help me if I'm missing anything? You are invoking an instance binding before the class binding that sets the actual item selection. This is explained for the similar listbox situation in the Tk usage FAQ:
http://tcl.sourceforge.net/faqs/tk/#listbox/curselection
Jeff
|
| Prathap | 08 Jul 2009 13:59 |
Hi:
when I invoke selection method for the tree item selected, I get previously selected tree item.
Basically, I have bound <1> to the tree item, and when I invoke rrcTree->selection, inside the handler function for mouse click I always get the previously selected item ID.
Can someone help me if I'm missing anything?
Regards, Prathap
|