Search found 14879 matches

by doublemax
Sun Jun 28, 2020 11:05 am
Forum: C++ Development
Topic: cannot catch key event in wxSpinCtrlDouble
Replies: 2
Views: 76

Re: cannot catch key event in wxSpinCtrlDouble

Try catching wxEVT_CHAR
by doublemax
Sun Jun 28, 2020 9:41 am
Forum: Platform Related Issues
Topic: Combine WinAPI app with wxWidgets
Replies: 11
Views: 290

Re: Combine WinAPI app with wxWidgets

I can't tell if this is a good solution or not, this is almost "uncharted territory". But it's a little different what you initially planned, isn't it? Now you have basically a wxWidgets application with the option to add windows through the plain Win32 API, not vice versa. I'm a little surprised th...
by doublemax
Fri Jun 26, 2020 6:38 pm
Forum: Platform Related Issues
Topic: Combine WinAPI app with wxWidgets
Replies: 11
Views: 290

Re: Combine WinAPI app with wxWidgets

The sample does actually explain how to make an MFC window and then add wxWidgets windows to it, but I can't do that without including MFC. Can't you just replace the MFC part with the Win32 API? Having looked around, however, I found that one potential solution could be to just run wxWidgets on a ...
by doublemax
Thu Jun 25, 2020 1:17 pm
Forum: C++ Development
Topic: Initializing a wxChoice
Replies: 4
Views: 167

Re: Initializing a wxChoice

buttonsrtoys wrote:
Thu Jun 25, 2020 12:51 pm
My environment is MSW, WX3.1.1, VS2017. I'm not shadowing my var. Looking into it now and will post if I learn anything.
Based on your initial post i also suspected that variable shadowing was the problem. Can you show the whole code of the constructor?
by doublemax
Thu Jun 25, 2020 11:34 am
Forum: Platform Related Issues
Topic: Combine WinAPI app with wxWidgets
Replies: 11
Views: 290

Re: Combine WinAPI app with wxWidgets

You should look into the "mfc" sample that comes with wxWidgets. Although it does not exactly what you need, it shows how to initialize wxWidgets when using wxIMPLEMENT_APP_NO_MAIN and how to have a separate event loop.

I've never used this though, so i probably won't be able to help any further.
by doublemax
Thu Jun 25, 2020 11:31 am
Forum: C++ Development
Topic: wxDC problem when window is minimized on wxMSW
Replies: 5
Views: 148

Re: wxDC problem when window is minimized on wxMSW

But how does it differ if I draw while the window is shown VS if I draw while it is minimized? The OS will send a paint event to your window when its content needs to get drawn. Anything you draw onto a wxClientDC will be overwritten by any regular paint event. E.g. if you draw anything onto a wxCl...
by doublemax
Thu Jun 25, 2020 5:49 am
Forum: C++ Development
Topic: wxDC problem when window is minimized on wxMSW
Replies: 5
Views: 148

Re: wxDC problem when window is minimized on wxMSW

I am using a wxClientDC (Also tried wxWindowDC) to draw a certain thing on a custom widget in the window.
Don't do this. Do all your drawing in a wxPaintEvent handler and onto a wx[Buffered]PaintDC.

https://docs.wxwidgets.org/trunk/classw ... event.html
by doublemax
Tue Jun 23, 2020 4:07 pm
Forum: C++ Development
Topic: Adding to wxRichTextTable is very slow
Replies: 4
Views: 167

Re: Adding to wxRichTextTable is very slow

I can confirm the issue. Something must be really un-optimized in the table code. Strangely enough, it only happens at creation, redrawing and even re-layout on size changes show now problems. If you could profile the code and pipoint the culprit, it would be great. But even if not, please open a ti...
by doublemax
Tue Jun 23, 2020 4:58 am
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 566

Re: debugrpt sample problems

What happens if you just open the path to the php file in a browser? You should see an error message: "450 MD5 hash is missing."
by doublemax
Mon Jun 22, 2020 9:57 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 566

Re: debugrpt sample problems

Widgets wrote:
Mon Jun 22, 2020 7:44 pm
does $file_root end up as server home directory relative or a regular Win OS file path?
I don't know if an absolute Windows path should work. I used a path relative to the location of the PHP file.
by doublemax
Mon Jun 22, 2020 6:43 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 566

Re: debugrpt sample problems

Any special setup/code required at the server end? Not much. I just edited the $file_root variable in the script to point to another directory. The directory must exist and the httpd process must have write access to it. And then i added a line that sends an email notification to me when a crashrep...
by doublemax
Mon Jun 22, 2020 5:58 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 566

Re: debugrpt sample problems

I still use crashrpt 1.4.3 without any issues. However, i'm also using an older VS 2013.

I use the HTTP reporting feature without any additional security measures. The worst thing people could do with it would be to fill my server with fake crash reports.
by doublemax
Sun Jun 21, 2020 7:57 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 384

Re: Using GUI member variables in a subclass

...is sharing the current gui in multiple modules. You don't. At least not in the way you imagine. If any class wants to communicate with your GUI, you pass a pointer to the GUI instance to that class (usually to its constructor). And all communication is done with public methods, don't access memb...
by doublemax
Sat Jun 20, 2020 4:16 pm
Forum: C++ Development
Topic: what's the event emitted when mouse clicked on a wxListCtrl header
Replies: 5
Views: 129

Re: what's the event emitted when mouse clicked on a wxListCtrl header

The event should work for that purpose.

Which platform are you on? Try to build the "listctrl" sample that comes with wxWidgets and check if it works as expected. (when you click the left-most column header, there should be a message in the log and the column image should toggle).
by doublemax
Sat Jun 20, 2020 3:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 384

Re: Using GUI member variables in a subclass

Last week I discovered that I need to replace the audio part, and found out that this was more work than anticipated. Then this should be a good starting point. Try to separate the audio player functionality from everything else, especially the GUI. Put everything in a separate class (no subclassin...