When using wxListCtrl in MSW dark mode, unlike in light mode:
LVS_EX_FULLROWSELECT was off).Can be reproduced with unmodified listctrl sample.
BTW, unlike with 3.2.2.1, the master listctrl sample misbehaves when switching to virtual view (regardless of dark/light mode), but I did not investigate whether the issue is with the control or the sample.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Is this only in list mode? To be honest, I only really care about wxListCtrl in report mode.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Is this only in list mode?
AFAICT, in dark mode, there is no hot tracking in any of the list control modes.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I tested if the lack of hot tracking in the dark mode was an issue in the wxListCtrl code or a limitation of the native listview. I used https://github.com/ysc3839/win32-darkmode/tree/delayload, the hot tracking works there:
listview-dark-hottracking.gif (view on web)
Since the listview sample is rather complex and uses custom drawing, I tested also with the minimal sample:
diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index 5f32257c6b..b23d7a4f63 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -26,6 +26,8 @@ #include "wx/wx.h" #endif +#include <wx/listctrl.h> + // ---------------------------------------------------------------------------- // resources // ---------------------------------------------------------------------------- @@ -175,6 +177,15 @@ MyFrame::MyFrame(const wxString& title) CreateStatusBar(2); SetStatusText("Welcome to wxWidgets!"); #endif // wxUSE_STATUSBAR + wxListCtrl* listCtrl = new wxListCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_SINGLE_SEL); + + listCtrl->AppendColumn("Item"); + listCtrl->AppendColumn("SubItem"); + for ( long i = 0; i < 10; ++i ) + { + listCtrl->InsertItem(i, wxString::Format("Item %ld", i)); + listCtrl->SetItem(i, 1, wxString::Format("SubItem %ld", i)); + } }
But still no hot tracking. So it seems the issue is on wxWidgets side here.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I do not see these problems in the latest master. The item selection is full width. I see hot tracking.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
There are still issues with hot tracking but it is there, so closing.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()