Search found 1925 matches

by PB
Wed May 15, 2019 11:15 am
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 153

Re: Windows 10 Dark Mode

But indeed, at lest for now, UWP-only features are not available through wxW. TBH, I cannot see wxWidgets adapting the UWP controls anytime soon. It would probably mean undertaking a great effort and creating a compatibility nightmare. Partially adopting UWP controls may not be that great either, m...
by PB
Mon May 13, 2019 5:40 pm
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 153

Re: Windows 10 Dark Mode

The File Explorer, Calendar, ... does change its color automatically, but other common Apps like Wordpad does not. Calendar is not a Win32 application*. Adding dark mode to File Explorer, which is, was not that simple , i.e. it had to be done for this single application by hand. Most of wxWidgets c...
by PB
Mon May 13, 2019 12:44 pm
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 153

Re: Windows 10 Dark Mode

Just curious: Is there really a dark mode in Windows 10 that affects not only UWP but also Win32 applications (such as Notepad, Wordpad, MSPaint)? Anyway, AFAIK the "dark mode" support has been introduced relatively recently and therefore is available only in the 3.1 branch and for MacOS only. EDIT ...
by PB
Fri May 03, 2019 5:01 pm
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 15
Views: 197

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

Alan Stewart wrote:
Fri May 03, 2019 4:39 pm
I'm using the 3.0.2 sources
wxWidgets 3.02 was released in October 2014.

This commit which may be of relevance here is from January 2015:
https://github.com/wxWidgets/wxWidgets/ ... 4070b00085
by PB
Fri May 03, 2019 4:09 pm
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 15
Views: 197

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

But i couldn't reproduce this in the "treectrl" sample. Neither could I, using wxWidgets 3.04 on Windows 10.0.17763. When I click the checkbox of a selected item, the item state change gets logged and the checkbox toggled, regardless of a monitor on which the sample is. My primary screen has a high...
by PB
Fri May 03, 2019 3:02 pm
Forum: C++ Development
Topic: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor
Replies: 15
Views: 197

Re: EVT_TREE_STATE_IMAGE_CLICK() and the second monitor

I'm guessing Windows or wx has a display coordinate system where the origin is on the primary monitor? This is true, e.g. here , my primary display i.e., wxDisplay(0) / DISPLAY1, is right to my secondary one and check the coordinates rows. You can also use the bundled display sample. No idea whethe...
by PB
Mon Apr 29, 2019 8:07 pm
Forum: C++ Development
Topic: Problems With Unicode
Replies: 9
Views: 179

Re: Problems With Unicode

char picked_group[40]; wxString groupString = ((wxChoice*)FindWindow(wxID_GROUP))->GetStringSelection().wx_str(); strcpy(picked_group, WX2UNI(groupString)); msg.Printf("Group String = %s", picked_group); I think that (at least) the code above is wrong. wxString::Printf() does not know that picked_g...
by PB
Sun Apr 28, 2019 5:59 pm
Forum: The Code Dump
Topic: wxSystemInformationFrame
Replies: 0
Views: 84

wxSystemInformationFrame

wxSystemInformationFrame is a wxFrame-derived class that can be easily added to a wxWidgets application and provide a quick overview of many different OS, wxWidgets, and application settings. While this is certainly not something needed often, perhaps once in a blue moon it can save a programmer fro...
by PB
Sat Apr 27, 2019 6:06 am
Forum: Compiler / Linking / IDE Related
Topic: undefined reference to `wxGrid::SetColSize(int, int)'
Replies: 4
Views: 152

Re: undefined reference to `wxGrid::SetColSize(int, int)'

As the thread is is not marked solved.... Does it work for you or not now, and did you have the advanced library linked?

As for the three missing libraries you listed: the first two are for wxWidgets 2.8 only and the third one is built only when using MSVC.
by PB
Fri Apr 26, 2019 5:10 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets headers and compiler warnings
Replies: 2
Views: 84

Re: wxWidgets headers and compiler warnings

IMO, this level of warning is best to be turned off for the external libraries and a decent compiler should easily allow that. I do not use Clang but it Google tells me it has -isystem option for that. Anyway, if you believe the warnings are correct, you can submit a PR (or patch) fixing them. Howev...
by PB
Thu Apr 25, 2019 5:12 am
Forum: Compiler / Linking / IDE Related
Topic: undefined reference to `wxGrid::SetColSize(int, int)'
Replies: 4
Views: 152

Re: undefined reference to `wxGrid::SetColSize(int, int)'

Do you link with wxAdvanced library, i.e., did you add libwxmsw30u_adv.a (or libwxmsw30ud_adv.a for the Debug build target) in your Project build options / Linker settings / Link libraries?
by PB
Tue Apr 16, 2019 8:03 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 328

Re: Moving to Visual Studio 2019

Eh, I did not notice that by purporse <wx/msw/winundef.h> does NOT have an include guard and can therefore be included several times. Hence, I repeat my advice from previous post about making sure that defines, in particular UNICODE related ones, are same for all the files in your project and as whe...
by PB
Tue Apr 16, 2019 7:03 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 328

Re: Moving to Visual Studio 2019

#includeing a header file multiple times should not matter, as all wxWidgets header files have guards against it. Assuming you really need to #include <wx/msw/winundef.h>, make sure this statement is after all wxWidgets header includes and after #include <windows.h>. But why would this break with ne...
by PB
Tue Apr 16, 2019 4:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 328

Re: Moving to Visual Studio 2019

Just to make sure the issue is within wxWidgets: can you build bundled drawing sample? Make 100% sure you cleared anything that may be left over from MSVC 2017 build, no matter how compatible the two compilers are supposed to be. I myself am too old to attempt using the very first release of a new v...
by PB
Sat Apr 13, 2019 4:25 pm
Forum: C++ Development
Topic: wxLog examples
Replies: 1
Views: 59

Re: wxLog examples

What exactly is the issue, can you not do something like the code linked below, except to store the log entries e.g. in a std::vector<wxString> instead of writing to a file?
viewtopic.php?t=42551#p172677