wxGenericListCtrl does nt emit wxEVT_LIST_BEGIN_DRAG

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3870
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

wxGenericListCtrl does nt emit wxEVT_LIST_BEGIN_DRAG

Post by ONEEYEMAN » Sun Jan 12, 2020 6:04 am

Hi,
I'm writing an application based on the DocView MDI architecture.
On of the views contains a wxNotebook. One of the pages of that notebook contains wxListCtrl.

On Windows everything works. The begin drag event comes and processed.
However on *nix/GTK and OSX/Cocoa the event does not arrive.

I tried to reproduce it inside the notebook sample on the same GTK machine I'm using everything works.

Any idea how to debug such an issue?

Thank you.

User avatar
doublemax
Moderator
Moderator
Posts: 14594
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxGenericListCtrl does nt emit wxEVT_LIST_BEGIN_DRAG

Post by doublemax » Sun Jan 12, 2020 9:31 am

First i would read the source code for the mouse event handler. wxListMainWindow::OnMouse in <wxdir>/src/generic/listctrl.cpp
There are a few conditions where the handler just returns, maybe one of them rings a bell when you see it.

If that doesn't help, set breakpoints in the handler and see where it takes you.
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3870
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxGenericListCtrl does nt emit wxEVT_LIST_BEGIN_DRAG

Post by ONEEYEMAN » Sun Jan 12, 2020 4:39 pm

doublemax,
Sorry for the noise - reproduced in the sample.
I am going to file a bug.

Thx.

Post Reply