Search found 1974 matches

by PB
Thu May 30, 2019 5:52 am
Forum: C++ Development
Topic: How to add a wxCheckBox to a wxStaticBoxSizer?
Replies: 1
Views: 62

Re: How to add a wxCheckBox to a wxStaticBoxSizer?

Perhaps the second part of the this post may help
viewtopic.php?f=1&t=45414&p=188287#p188286

But if you need to do it in your GUI builder instead of code, this may get complicated.
by PB
Wed May 29, 2019 5:40 am
Forum: Compiler / Linking / IDE Related
Topic: Can't use a PNG from Resources file (VS2017)
Replies: 7
Views: 234

Re: Can't use a PNG from Resources file (VS2017)

I'm definitely not clear on what causes the issue! Somewhere, I'm guessing, the name is being unexpectedly converted to the ordinal because of the macro #defined in resource.h - remove or rename the macro and the issue disappears. The way I understand it, an MS Windows resource can be identified (e...
by PB
Mon May 27, 2019 7:33 pm
Forum: Compiler / Linking / IDE Related
Topic: Can't use a PNG from Resources file (VS2017)
Replies: 7
Views: 234

Re: Can't use a PNG from Resources file (VS2017)

I am probably too late but are we clear that the issue is the resource ordinal value versus its name, originating from the hackish way (exploiting the resource ID range and memory addressing limitations) of distinguishing the two as it was created long time ago by Microsoft? The hash in wxBITMAP_PNG...
by PB
Sun May 26, 2019 3:35 pm
Forum: Platform Related Issues
Topic: Toolbar Icons and DPI Aware 3.1.x
Replies: 13
Views: 338

Re: Toolbar Icons and DPI Aware 3.1.x

I checked it, and the DPIAwareness is at the moment not needed. What does it mean? Do you actually have a high-DPI setup? I do and as a user I find applications not supporting high DPI basically unusable: you can choose between them being rather unpleasantly blurry or their text/bitmaps being too s...
by PB
Wed May 15, 2019 11:15 am
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 6
Views: 370

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: 370

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: 370

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: 27
Views: 618

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: 27
Views: 618

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: 27
Views: 618

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: 306

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: 212

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: 224

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: 154

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: 224

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?