Minor fixes for generic wxTreeCtrl on OSX (PR #25885)

22 views
Skip to first unread message

RobertRoeb

unread,
Oct 15, 2025, 3:57:27 PM (2 days ago) Oct 15
to wx-...@googlegroups.com, Subscribed
  • When not having focus, the selection rectangle is light grey and then we have to use the standard black pen to draw over the selection rect, not the white pen used over the blue selection rectangle, when the control has the focus
  • toggle the tree also with DClick events like the native control and as you would expect anyways

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

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

Commit Summary

  • ee71f0d Minor fixes for generic wxTreeCtrl on OSX

File Changes

(1 file)

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

VZ

unread,
Oct 15, 2025, 4:04:32 PM (2 days ago) Oct 15
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.


In src/generic/treectlg.cpp:

> @@ -3902,7 +3903,11 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
             {
                 // only toggle the item for a single click, double click on
                 // the button doesn't do anything (it toggles the item twice)
-                if ( event.LeftDown() )
+                // Reply: wxWidgets only sends one LeftDown() event and if you

Thanks, I'm going to merge this but I don't understand the format of this comment, what is this replying to?


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/25885/review/3342046573@github.com>

Robert Roebling

unread,
Oct 15, 2025, 4:23:31 PM (2 days ago) Oct 15
to wx-...@googlegroups.com
It replies to the two lines of comment directly above it which indicate that someone intentionally disabled reacting to double click events. Thinking more about it- this patch will not work on wxGTK if anyone uses the generic wxTreeCtrl there, so this is not optional 

--
You received this message because you are subscribed to the Google Groups "wx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-dev+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-dev/wxWidgets/wxWidgets/pull/25885/review/3342046573%40github.com.

Vadim Zeitlin

unread,
Oct 15, 2025, 4:32:26 PM (2 days ago) Oct 15
to wx-...@googlegroups.com
On Wed, 15 Oct 2025 22:23:14 +0200 'Robert Roebling' via wx-dev wrote:

RR> It replies to the two lines of comment directly above it which indicate

I don't think it's a good idea to write dialogue in comments... Why not
just correct the existing comment instead? IMO it would be much clearer.

But, and more importantly, should we actually apply this? According to
your other post, it's rather a bug in wxMac itself which should be fixed,
is it not?

Regards,
VZ

VZ

unread,
Oct 15, 2025, 4:36:58 PM (2 days ago) Oct 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25885)

Taking into account your post about missing wxEVT_LEFT_DOWN events in wxOSX, I take my words back: we probably shouldn't apply this if we can fix that bug instead.

I can still apply the first part if you'd like.


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

RobertRoeb

unread,
Oct 16, 2025, 3:34:01 AM (yesterday) Oct 16
to wx-...@googlegroups.com, Push

@RobertRoeb pushed 1 commit.

  • 9ee3426 Back out double click change, the bug is in wxMac


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

RobertRoeb

unread,
Oct 16, 2025, 3:37:51 AM (yesterday) Oct 16
to wx-...@googlegroups.com, Subscribed
RobertRoeb left a comment (wxWidgets/wxWidgets#25885)

I can still apply the first part if you'd like.

Exactly, I just removed the rest


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

VZ

unread,
Oct 16, 2025, 7:36:00 AM (20 hours ago) Oct 16
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25885)

Thanks, I'll merge this soon but FWIW I think this is still wrong, we really shouldn't be hard coding "white" anywhere, as it must not work in dark mode.

The same applies to wxBLACK_PEN used under non-Mac platforms too, of course...


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

VZ

unread,
Oct 16, 2025, 7:41:13 AM (20 hours ago) Oct 16
to wx-...@googlegroups.com, Subscribed

Closed #25885 via 2ef5491.


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/25885/issue_event/20316612799@github.com>

Reply all
Reply to author
Forward
0 new messages