Search found 342 matches

by New Pagodi
Fri Apr 19, 2019 1:34 am
Forum: C++ Development
Topic: Read access violation when closing my app
Replies: 5
Views: 396

Re: Read access violation when closing my app

You don't need to delete mainWindow. As part of application termination, wxWidgets destroys all top level widows.
by New Pagodi
Mon Apr 15, 2019 2:30 pm
Forum: C++ Development
Topic: example for modal progress bar
Replies: 4
Views: 429

Re: example for modal progress bar

The dialogs sample is in the samples folder that comes with the wxWidgets library - specifically in the folder <WXROOT>/samples/dialogs. If you're using a separate worker thread, it's very important that you never call gui methods from the secondary thread. So you'll have to update the progress dial...
by New Pagodi
Mon Apr 15, 2019 2:05 pm
Forum: C++ Development
Topic: example for modal progress bar
Replies: 4
Views: 429

Re: example for modal progress bar

It sounds like what you want is the wxProgressDialog class. There is a short example this page and larger example in the dialogs sample.
by New Pagodi
Thu Apr 11, 2019 12:36 am
Forum: C++ Development
Topic: how to hide a complex wxDialog's slow first render?
Replies: 2
Views: 257

Re: how to hide a complex wxDialog's slow first render?

The usual way to do this is to to create is to create an initially hidden panel, add all the controls to it, and then show the panel. You might want to also consider using a property grid. That way you can group things in logical categories and it would probably offer a less crowded interface for th...
by New Pagodi
Tue Apr 09, 2019 12:23 am
Forum: C++ Development
Topic: wxString to const char*
Replies: 1
Views: 161

Re: wxString to const char*

If you're using 3.0 or later, wxString can be implicitly cast to const char*. So you can just do:

Code: Select all

f(str);
If the string contains only ascii characters, that's the easiest thing to do.
by New Pagodi
Thu Apr 04, 2019 3:09 pm
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 558

Re: wxNativeWindow host app

@PB thanks for the efforts, I will keep googling for OSX @New Pagodi QT somehow has done it https://doc.qt.io/qt-5/qwindow.html#fromWinId . anyway I don't see wxNativeWindow can help in this so will keep exploring, Thanks guys for your time. There's a lot of "ifs" in that description - I'm still sk...
by New Pagodi
Thu Apr 04, 2019 12:35 pm
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 558

Re: wxNativeWindow host app

I don't see any way this could work on macOS. In windows both top level windows and widgets are treated as the same sort of thing. On macOS top level windows and widgets are different things. wxNativeWindow is meant to wrap around the widget type objects - not the top level window type objects.
by New Pagodi
Sun Mar 31, 2019 4:48 pm
Forum: C++ Development
Topic: wxDC don't draw on wxPanel
Replies: 2
Views: 211

Re: wxDC don't draw on wxPanel

You need to handle the paint event.

The UpdateUI event is an entirely different thing that has nothing to do with drawing.
by New Pagodi
Thu Mar 21, 2019 9:11 am
Forum: C++ Development
Topic: determine number of cpu cores
Replies: 9
Views: 623

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

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

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

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

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

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

Re: Video player component using ffmpeg?

This is a wrapper around FFMpeg that sounds like it does what you want.