On Wed, Apr 23, 2008 at 9:20 AM, Vaughn Staples <[EMAIL PROTECTED]> wrote: > Daniel, > > You can use the GetItemParent() method on the selected item: > > my $parent_ptr = $self->GetItemParent( $selected_item ); > > When I right click on a tree item here the item does in fact select. > I'm not sure why you are not seeing the same behavior on your end.
I'm very curious about under what conditions/OS's/whatever right-clicking would fail to select an item too.. I've only seen it select items, but I had one person testing my software (on XP, like me) tell me that it did not select items. I'd written methods which assumed that the right-clicked item was selected, because then I was able to fire off the same methods for acting on a tree item, whether the methods were invoked by a menubar menu, toolbar icon, or (right-click) context menu. The fact that for at least that user on win xp, right clicking did not select the item, throws doubt on whether I can continue to do things that way, and that's an open bug in a project I'm working on... So yeah, if anyone knows what the deal is about treectrls, selection, and right-clicks, I'd be curious to hear!
