Search found 307 matches

by New Pagodi
Thu Apr 04, 2019 3:09 pm
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 332

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: why the listctrl has the back window as background

I think the last line of the constructor should be 'mainPanel->Layout();'