Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Tk / July 2009



Tip: Looking for answers? Try searching our database.

Selection returns previously selected item ID.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prathap - 08 Jul 2009 14:59 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.