wxDropSource and wxListBox on Mac, mouse left down not being detected.

19 views
Skip to first unread message

Tony Kennedy

unread,
Oct 2, 2025, 7:26:02 AM (4 days ago) Oct 2
to wx-users
Hi all,

Using wx 3.3.0 on MacOS 15.7.1 (Sequioa)

I'm testing some drag/drop functionality on the Mac. Everything works fine on Windows (for a wxDropSource with wxListbox, wxTreeCtrl, wxDataViewCtrl and wxListbox).

On the Mac, all works fine except the wxListbox. I select something, then try dragging, but the selection just seems to follow the mouse, and in my MouseMotion function, the LeftDown is always false. I've tried using wxGetMouseState as well to see if the left is down,  same result.

Does anyone else have an application on the Mac where drag/drop is implemented using a wxListBox? I'd be interested to know if it's working with wx 3.3.0.

Thanks in advance,

Tony.

Tony Kennedy

unread,
Oct 2, 2025, 7:39:20 AM (4 days ago) Oct 2
to wx-users
I'll try and modify the dnd sample so it also has a wxListBox to drag from.

Tony.

Tony Kennedy

unread,
Oct 2, 2025, 7:58:13 AM (4 days ago) Oct 2
to wx-users
I've modified the sample to add a wxListBox, and the same behaviour happens.

Anyone else seeing this?

Thanks in advance,

Tony.
dnd.cpp
Reply all
Reply to author
Forward
0 new messages