Support drag-and-drop autoscroll (PR #26237)

15 views
Skip to first unread message

Bill Su

unread,
Feb 23, 2026, 8:24:34 PM (2 days ago) Feb 23
to wx-...@googlegroups.com, Subscribed

As stated in #25978 (comment), I want to implement autoscroll for drag-and-drop operations, and https://github.com/wxWidgets/wxWidgets/blob/61300d78d215e576576e7dc951f3147ef1785db2/samples/dnd/d_and_d.txt#L163 implies that I'm not the only one who wants this feature.

Now that the wxScrolled<> autoscroll region is configurable, this PR is a suggestion for another wxScrolled<> extension to support autoscrolling during drag-and-drop. Commit 9054302 implements the support, and commit e2439c1 modifies the dnd sample to demonstrate dragging a DnDShape from one DnDShapeFrame to another DnDShapeFrame with the destination DnDShapeFrame autoscrolling.

I realize that commit e2439c1 leaves the sample with some imperfections, but I think the current form is sufficient to demonstrate the API. If the API is approved, then I will go back and refine the sample.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26237

Commit Summary

  • 9054302 wxScrolled<>: support for autoscroll during drag
  • e2439c1 dnd: extend sample to demonstrate autscroll

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26237@github.com>

Bill Su

unread,
Feb 23, 2026, 8:31:58 PM (2 days ago) Feb 23
to wx-...@googlegroups.com, Subscribed
wsu-cb left a comment (wxWidgets/wxWidgets#26237)

If the API is approved, then I will go back and refine the sample.

And add documentation to interface/wx/scrolwin.h.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26237/c3948356235@github.com>

Bill Su

unread,
Feb 23, 2026, 11:11:18 PM (2 days ago) Feb 23
to wx-...@googlegroups.com, Push

@wsu-cb pushed 1 commit.

  • 23c4e89 dnd: fix unused param warnings/errors


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26237/before/e2439c10f4ac8a30cd93d51e717a44877ef92bed/after/23c4e89aec4e033c2975e177422a87fee3be0ccb@github.com>

Bill Su

unread,
Feb 23, 2026, 11:39:00 PM (2 days ago) Feb 23
to wx-...@googlegroups.com, Push

@wsu-cb pushed 1 commit.

  • b915c7d dnd: add missing override indicator


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26237/before/23c4e89aec4e033c2975e177422a87fee3be0ccb/after/b915c7d54508071f198ccb4ca4b93fffbaa18eab@github.com>

Reply all
Reply to author
Forward
0 new messages