Search found 274 matches

by New Pagodi
Thu Mar 21, 2019 9:11 am
Forum: C++ Development
Topic: determine number of cpu cores
Replies: 6
Views: 59

Re: determine number of cpu cores

would it be possible (or just a good way to do this) to somehow determine the number of cpu cores in a system so I can create the optimal number of threads? The static wxThread method GetCPUCount should give you this number. if so, how many would be ideal? thank you! There's no way to answer this q...
by New Pagodi
Sat Mar 09, 2019 8:31 am
Forum: Platform Related Issues
Topic: wxWidgets Android
Replies: 2
Views: 85

Re: wxWidgets Android

Unfortunately no. Those files are the remnant of an attempt at an android port, but it never progressed very far.
by New Pagodi
Fri Feb 22, 2019 4:37 am
Forum: C++ Development
Topic: wxPropertyGrid with additional checkbox to each property
Replies: 7
Views: 222

Re: wxPropertyGrid with additional checkbox to each property

Here's one way to do this. As discussed above, this uses a derived renderer and overrides the Render method. It basically just inappropriately injects a bitmap into the labels column and then calls the base class Render method. // For compilers that support precompilation, includes "wx/wx.h". #inclu...
by New Pagodi
Thu Feb 21, 2019 8:46 am
Forum: C++ Development
Topic: wxPropertyGrid with additional checkbox to each property
Replies: 7
Views: 222

Re: wxPropertyGrid with additional checkbox to each property

That does seem like a pretty good approach. Other than the wxWidgets source code itself, you probably won't find any example code. If you can't make any progress, I'll see if I can throw something together tomorrow.
by New Pagodi
Thu Feb 21, 2019 7:22 am
Forum: C++ Development
Topic: wxPropertyGrid with additional checkbox to each property
Replies: 7
Views: 222

Re: wxPropertyGrid with additional checkbox to each property

This is a really good question, but I don't think there is a good answer. Looking over the code, I think you might have to derive a class for each renderer you use and re-implement the Render method for column 0 to draw the check box and then the property label. You'll then need some way to keep tra...
by New Pagodi
Mon Feb 18, 2019 9:45 pm
Forum: Compiler / Linking / IDE Related
Topic: ld: symbol(s) not found for architecture x86_64
Replies: 4
Views: 188

Re: ld: symbol(s) not found for architecture x86_64

Another thing that might trigger this error is trying to use the dynamic library when the static one was expected (or vice versa).
by New Pagodi
Mon Feb 18, 2019 2:50 am
Forum: General Development
Topic: Video player component using ffmpeg?
Replies: 11
Views: 210

Re: Video player component using ffmpeg?

This is a wrapper around FFMpeg that sounds like it does what you want.
by New Pagodi
Mon Feb 11, 2019 8:15 am
Forum: C++ Development
Topic: wxString pointer crash
Replies: 3
Views: 77

Re: wxString pointer crash

wxString* sVol; *sVol = wxT("hi"); wxMessageBox(*sVol, wxT("caption")); The first line creates a pointer variable but does not initialize it. So it contains a random number. The second line dereferences the pointer and tries to assign it to the contents of another string. What does that do? See her...
by New Pagodi
Fri Feb 08, 2019 1:13 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up a base project
Replies: 5
Views: 161

Re: Setting up a base project

I guess I should have mentioned that I haven't actually used it myself. But looking over the files, it looks like if you set the CharacterSet to Unicode in your project, it should trigger using the right folder name.
by New Pagodi
Thu Feb 07, 2019 11:07 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up a base project
Replies: 5
Views: 161

Re: Setting up a base project

If your using 3.1.2, there's a props file in the root folder you can use. It's described in this blog post.
by New Pagodi
Thu Jan 31, 2019 10:15 am
Forum: General Development
Topic: why the listctrl has the back window as background
Replies: 9
Views: 305

Re: why the listctrl has the back window as background

I think the last line of the constructor should be 'mainPanel->Layout();'
by New Pagodi
Wed Jan 30, 2019 11:55 pm
Forum: Platform Related Issues
Topic: Widgets look flat in wxFormbuilder, but not when compiled in IDE
Replies: 11
Views: 370

Re: Widgets look flat in wxFormbuilder, but not when compiled in IDE

I think this is a theme/manifest issue. This topic has come up a few times, but I my search skills are failing me and I can't find any forum links right now. The easy way to solve this is to: 1) create an rc file containing at least the line #include "wx/msw/wx.rc" See <WXROOT>\samples\sample.rc for...
by New Pagodi
Sun Jan 27, 2019 10:11 pm
Forum: Platform Related Issues
Topic: Windows/Msys2 samples/minimal.exe give segmentation fault
Replies: 5
Views: 81

Re: Windows/Msys2 samples/minimal.exe give segmentation fault

Having said that, I just tried to build with configue/make in msys2 and I didn't get a segfault when running the mimimal sample. I did however have to add the path to the libraries to the shell's path before the sample would run. Do you maybe have another set of wxWidgets libraries on your system pa...
by New Pagodi
Sun Jan 27, 2019 10:04 pm
Forum: Platform Related Issues
Topic: Windows/Msys2 samples/minimal.exe give segmentation fault
Replies: 5
Views: 81

Re: Windows/Msys2 samples/minimal.exe give segmentation fault

You don't have to use the configure/make system with msys2. You can just use the mingw make files instead. To do so just start the appropriate shell (MSYS2 MinGW 32-bit or MSYS2 MinGW 64-bit), change to the build folder of your wxWidgets set and enter a command like: mingw32-make -f makefile.gcc BUI...