Positioning problem in wxTreeListCtrl

Hi list,

Yesterday I sent this question. However I had some problems with my
mail, so answers might have gone lost. So if any of you has sent an
answer please resend..

Thanks a lot...

Dick

Original message:

The following snippet of code is used to display a menu on a
wxTreeListCtrl.

However, the menu is shown not on the position of the mouse pointer (as
it is supposed to do), but a almost a line above it. Also, the HitTest
gives me the wrong item back. As a matter of fact it gives the item
ABOVE the item that it is positioned at.

    def OnListRightDown(self, event):
        pt = event.GetPosition()
        self.y = event.GetY()
        self.x = event.GetX()
        self.item, flags, cols = self.StatusTree.HitTest(pt)
        self.soort, self.rec = self.StatusTree.GetPyData(self.item)
        if self.rec is None:
            wxBell()
            return
        event.Skip()
        
    def OnRightClick(self, event):
        if hasattr(self,"P_UpMenu"):
            self.PopupMenuXY(self.P_UpMenu.popupmnu, self.x, self.y)
        event.Skip()

The same code is working OK on a wxListCtrl. So is it a bug???

Kind regards,
Dick Kniep

Dick Kniep wrote:

Hi list,

Yesterday I sent this question. However I had some problems with my
mail, so answers might have gone lost. So if any of you has sent an
answer please resend..

http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:21847:200309:dajdnddjhbnmpfjfhhba

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi Alberto,

Has anything been fixed on this?

By the way, great product!

Regards.
D.Kniep

···

On Wed, 2003-09-03 at 00:43, Alberto Griggio wrote:

On Tue, 02 Sep 2003 15:00:33 -0700, Robin Dunn wrote:

> Dick Kniep wrote:
>> Hi list,
>>
>> Yesterday I sent this question. However I had some problems with my
>> mail, so answers might have gone lost. So if any of you has sent an
>> answer please resend..
>>
>
> http://lists.wxwindows.org/cgi-bin/ezmlm-cgi?11:mss:21847:200309:dajdnddjhbnmpfjfhhba

Ok, I'll take it.

Alberto

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

Dick Kniep wrote:

Hi Alberto,

Has anything been fixed on this?

Yes. He sent me a patch that is now in CVS and will be in 2.4.2.x.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

When is it due?

···

On Tue, 2003-09-30 at 00:08, Robin Dunn wrote:

Yes. He sent me a patch that is now in CVS and will be in 2.4.2.x.

Dick Kniep wrote:

···

On Tue, 2003-09-30 at 00:08, Robin Dunn wrote:

Yes. He sent me a patch that is now in CVS and will be in 2.4.2.x.

When is it due?

Any day now.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!