Re: Using a generic control where the native one is default
PB <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, thanks both for the answers. I have tried using wxGenericListCtrl as Vadim hinted but I got a bunch of linker errors: It appears that the generic code is not compiled or linked in. I tried (shared and static) wxWidgets built with nmakefiles; based on Maarten's information this would not work out of the box with CMake either. If using a generic control requires "hacking" a wxWidgets build, I don't need it that much. wxListCtrl on Windows still has some issues in dark mode, which may not be easy to fix. However, wxDVLC does not have a native appearance there either: The item selection color is different (blue vs native gray) and the color of (optional) vertical and horizontal rulers is too bright (compared to that of column separators in the native header). I think we may need to add more color getters for certain items to wxDarkModeSettings, where the color may unfortunately be hard-coded by default . As for why I wanted it and not wxDVLC. Aside from the report mode, wxListCtrl has those modes which allows the column to wrap and efficiently use the screen width if you have many short labels. BTW, wxDVLC in report mode also has some shortcomings when comparing to the native list control. For example, AFAICT, wxDVLC does not support item hot-tracking on mouse move nor does it allow multiple selection by mouse dragging. Best, PB -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/c59e3408-b6bc-4982-a257-30a29fd61aean%40googlegroups.com.