Search found 231 matches

by DenDev
Wed Jan 31, 2024 7:12 pm
Forum: Platform Related Issues
Topic: GTK: wxChoice's are "squashed"?
Replies: 2
Views: 479

GTK: wxChoice's are "squashed"?

If I insert a wxChoice into a sizer with a label next to it, the choice is vertically "squashed" and hard to read. In order to force it's correct size, I need to set the choice's minimum size to the height of a wxButton - is this a bug? wxFlexGridSize *sizer = new wxFlexGridSizer(1, 2, 0, ...
by DenDev
Thu Jun 15, 2023 12:07 pm
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

Re: 3.0.2 on Win7 => 3.2.2 on Win10 issues..

Looking at the GCC install instructions , I am instructed to run "mingw32-make -j4 -f makefile.gcc BUILD=release SHARED=0 setup_h" before I start a parallel build with "mingw32-make -j4 -f makefile.gcc BUILD=release SHARED=0": [-X If "-j4" is present for the "setup...
by DenDev
Wed Jun 14, 2023 5:54 pm
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

Re: 3.0.2 on Win7 => 3.2.2 on Win10 issues..

I have been poking around and I have found the issue I'm facing, all paths originate from wxWidgets base directory: The Makefile has a list of includes (added with -I) to be used as argument to g++ and the same includes are (conveniently) also used for windres. The directory "lib/gcc_lib/mswu&q...
by DenDev
Tue Jun 13, 2023 5:33 pm
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

Re: 3.0.2 on Win7 => 3.2.2 on Win10 issues..

I don't think so, see (rcdefs.h is included from wx.rc) wxWidgets on the new system has been build with: cd wxWidgets\build\msw mingw32-make -j4 -f Makefile.gcc BUILD=release SHARED=0 setup_h mingw32-make -j4 -f Makefile.gcc BUILD=release SHARED=0 The source code for the application is unmodified a...
by DenDev
Tue Jun 13, 2023 1:39 pm
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

Re: 3.0.2 on Win7 => 3.2.2 on Win10 issues..

Curious.. I've poked a bit at it and my RC file looks like this: aaaa ICON "../res/MainIcon.ico" wxSTD_FRAME ICON "../res/MainIcon.ico" #include "wx/msw/wx.rc" Compilation on the old system will include the default wx manifest, but on the new system it does not. Impleme...
by DenDev
Tue Jun 13, 2023 11:46 am
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

Re: 3.0.2 on Win7 => 3.2.2 on Win10 issues..

Manifests were introduced with Windows XP, in 2001. ;) But I still do not understand how it could have worked before the upgrade for you. I've looked at a binary from the old system and the standard wxWidgets manifest (wx/msw/wx.manifest) is embedded as a resource in it. From that I must conclude t...
by DenDev
Tue Jun 13, 2023 9:08 am
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

Re: 3.0.2 on Win7 => 3.2.2 on Win10 issues..

Thanks a bunch (to both of you)! =D>

I have not used Windows since Win7, so the manifest thing seems to have slipped under the radar..

After including a manifest, everything look as it should again - even transparency in the PNG's have been restored, so that was an easy fix! :D
by DenDev
Mon Jun 12, 2023 5:42 pm
Forum: Platform Related Issues
Topic: 3.0.2 on Win7 => 3.2.2 on Win10 issues..
Replies: 14
Views: 4388

3.0.2 on Win7 => 3.2.2 on Win10 issues..

When I compile my wxWidgets 3.0.2 app with an old version of MinGW on Windows 7 64bit, everything looks as I would expect it to. When I compile the app with the latest MinGW-w64 using the latest wxWidgets 3.2.2.1 I have some issues with the result: 1) The UI on the version compiled on Win10 looks qu...
by DenDev
Thu Mar 23, 2017 6:24 pm
Forum: Platform Related Issues
Topic: wxExecute: Unicode arguments on Linux, how to?
Replies: 7
Views: 2893

Re: wxExecute: Unicode arguments on Linux, how to?

I've had some more time to test this issue and wx version 3.1 has fixed the issue, marking as solved :)
by DenDev
Sat Mar 18, 2017 12:11 pm
Forum: Platform Related Issues
Topic: wxExecute: Unicode arguments on Linux, how to?
Replies: 7
Views: 2893

Re: wxExecute: Unicode arguments on Linux, how to?

I have tried to upgrade wx to 3.1.0 and it seems to have solved the issue :)
by DenDev
Fri Mar 17, 2017 6:33 pm
Forum: Platform Related Issues
Topic: wxExecute: Unicode arguments on Linux, how to?
Replies: 7
Views: 2893

Re: wxExecute: Unicode arguments on Linux, how to?

AFAIK Linux uses UTF-8 on the command line. Trace into the wxExecute call and see what it does. https://github.com/wxWidgets/wxWidgets/blob/master/src/unix/utilsunx.cpp#L562 It converts the command line into char** and executes the command using "execvp": https://linux.die.net/man/3/execv...
by DenDev
Fri Mar 17, 2017 4:30 pm
Forum: Platform Related Issues
Topic: wxExecute: Unicode arguments on Linux, how to?
Replies: 7
Views: 2893

Re: wxExecute: Unicode arguments on Linux, how to?

The formatters are not part of the problem. This example does not work on Linux (works fine on Windows, though): wxString cmd = "/usr/bin/program"; cmd += " \"/home/me/Skæg.ext\""; wxExecute(cmd, wxEXEC_ASYNC | wxEXEC_MAKE_GROUP_LEADER, m_Process); P.S: Executing the co...
by DenDev
Fri Mar 17, 2017 3:25 pm
Forum: Platform Related Issues
Topic: wxExecute: Unicode arguments on Linux, how to?
Replies: 7
Views: 2893

wxExecute: Unicode arguments on Linux, how to?

What must I do to be able to execute a program with a path containing unicode characters as argument? The following will fail: wxString cmd = wxString::Format("\"%s\" \"%s\"", "/usr/bin/program", "/home/me/Skæg.ext"); wxExecute(cmd, wxEXEC_ASYNC | wx...
by DenDev
Thu Dec 01, 2016 6:42 pm
Forum: C++ Development
Topic: Why is wxFontInfo incomplete ?
Replies: 2
Views: 2398

Re: Why is wxFontInfo incomplete ?

wxFontInfo is just a helper class which can be used to more convenient (or read friendly) font creation, like this: wxFont f = new wxFont(wxFontInfo(18).Bold().Underlined().FaceName("Helvetica")); You cannot access the private fields because they are only temporary storage for parameters. ...
by DenDev
Wed Oct 26, 2016 2:40 pm
Forum: C++ Development
Topic: Questions regarding threads in wxWidgets
Replies: 3
Views: 1291

Re: Questions regarding threads in wxWidgets

You should not update UI-elements from threads (please repeat this inside your head 1000 times!). You should post messages from the threads to the main message loop in order to update the grid. In order to prevent multiple thread accessing the same code / memory at once you should use a wxCriticalSe...