Added mouse events tests to event sample (PR #25886)

20 views
Skip to first unread message

RobertRoeb

unread,
Oct 16, 2025, 4:18:28 AM (24 hours ago) Oct 16
to wx-...@googlegroups.com, Subscribed

Later add fix for Double Click inconsistency


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

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

Commit Summary

  • 284689d Added mouse events tests to event sample

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/25886@github.com>

RobertRoeb

unread,
Oct 16, 2025, 5:38:38 AM (22 hours ago) Oct 16
to wx-...@googlegroups.com, Push

@RobertRoeb pushed 1 commit.

  • 9af4b40 Synthesize RIGHT/LEFT_DOWN events before DCLICK events


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25886/before/284689d18ccbc157c73580e7d831b2860255ad22/after/9af4b407532ffde7bb22ac00ed3134e1935329ad@github.com>

VZ

unread,
Oct 16, 2025, 7:30:53 AM (21 hours ago) Oct 16
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25886)

Result of testing under Windows (I've changed the logging format to see more lines on the screen):

wxEVT_ENTER_WINDDOW (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEAVE_WINDDOW (buttons down: none)

This is not quite the same as under GTK where I get:

wxEVT_ENTER_WINDDOW (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DOWN (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEFT_DCLICK (buttons down: left)
wxEVT_LEFT_UP (buttons down: none)
wxEVT_LEAVE_WINDDOW (buttons down: none)

where we get an extra pair of DOWN/UP events before each DCLICK.

I'm not sure if we can (easily) change either of these behaviours, so maybe the best we can do is to document this difference.


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/25886/c3410429830@github.com>

VZ

unread,
Oct 16, 2025, 7:31:31 AM (21 hours ago) Oct 16
to wx-...@googlegroups.com, Push

@vadz pushed 1 commit.

  • 6e197c2 Log mouse events more compactly


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25886/before/9af4b407532ffde7bb22ac00ed3134e1935329ad/after/6e197c2405fce9a99e9f6fe23e8c1c2c6d739edc@github.com>

RobertRoeb

unread,
Oct 16, 2025, 8:49:19 AM (19 hours ago) Oct 16
to wx-...@googlegroups.com, Subscribed
RobertRoeb left a comment (wxWidgets/wxWidgets#25886)

I think they have behave the same, but no back porting.


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/25886/c3410739917@github.com>

RobertRoeb

unread,
Oct 16, 2025, 2:04:55 PM (14 hours ago) Oct 16
to wx-...@googlegroups.com, Push

@RobertRoeb pushed 1 commit.

  • 8b6c2bf Make wxMac emit DCLICK and LEFT/RIGHT_DOWN events like wxMSW


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25886/before/6e197c2405fce9a99e9f6fe23e8c1c2c6d739edc/after/8b6c2bffddc9775e92d4e9f7f711713a14c12407@github.com>

RobertRoeb

unread,
Oct 16, 2025, 2:06:27 PM (14 hours ago) Oct 16
to wx-...@googlegroups.com, Push

@RobertRoeb pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25886/before/8b6c2bffddc9775e92d4e9f7f711713a14c12407/after/4336df3b169fe41dd03341273be821fbc60f3352@github.com>

RobertRoeb

unread,
Oct 16, 2025, 2:31:56 PM (14 hours ago) Oct 16
to wx-...@googlegroups.com, Subscribed
RobertRoeb left a comment (wxWidgets/wxWidgets#25886)

I just checked wxGTK as well and I think it translates a triple click into a LEFT_DOWN, but other than that they would all behave the same now.


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/25886/c3412283220@github.com>

RobertRoeb

unread,
Oct 16, 2025, 2:37:27 PM (13 hours ago) Oct 16
to wx-...@googlegroups.com, Push

@RobertRoeb pushed 1 commit.

  • a4d511f Toggle tree branch for both single and double clicks


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/25886/before/4336df3b169fe41dd03341273be821fbc60f3352/after/a4d511fd6e7017b975d573888c11417a5a263b46@github.com>

Reply all
Reply to author
Forward
0 new messages