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
Jeff Hobbs - 08 Jul 2009 20:39 GMT
> 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