Search found 12582 matches

by doublemax
Fri Sep 21, 2018 5:22 pm
Forum: C++ Development
Topic: Post Events Between *Two* wxApps
Replies: 1
Views: 15

Re: Post Events Between *Two* wxApps

You can't use "normal" wxEvents to communicate between applications. For communication between two wxWidgets apps check this: https://docs.wxwidgets.org/trunk/overview_ipc.html Under Windows there is a simple way by using "RegisterWindowMessage". https://docs.microsoft.com/en-us/...
by doublemax
Fri Sep 21, 2018 4:42 pm
Forum: Open Discussion
Topic: Wiki editing errors [SOLVED]
Replies: 1
Views: 32

Re: Wiki editing errors [SOLVED]

I have no idea who's responsible for the Wiki page, try asking on the wx-users group / mailing list.
https://groups.google.com/forum/#!forum/wx-users
by doublemax
Thu Sep 20, 2018 10:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Issue with Visual Studio 2017 15.8.4?
Replies: 8
Views: 98

Re: Issue with Visual Studio 2017 15.8.4?

The VS project files for all samples use relative paths for include, library and resource directories. If you move them, you need to adjust these under:
C/C++ -> General
Linker -> General
Resources -> General
by doublemax
Thu Sep 20, 2018 5:43 pm
Forum: Compiler / Linking / IDE Related
Topic: Undefined Reference in Static Library
Replies: 7
Views: 63

Re: Undefined Reference in Static Library

At the very least you should have seen fewer errors. Did you or did you get the same ones as before?

copying these files to wxWidgets lib/gcc_lib folder.
That should not be necessary and usually does more harm than good. Reverse it.
by doublemax
Thu Sep 20, 2018 5:38 pm
Forum: C++ Development
Topic: Hybrid button on ribbon bar always getting cut off
Replies: 2
Views: 24

Re: Hybrid button on ribbon bar always getting cut off

I can't give you a "oh, yeah, that was fixed in...", but based on the screenshot, it could be a High-DPI problem. Is your program marked as "DPI aware"? If yes, try setting the font-scaling on your system to 150 or even 200% and check if you then see the issue.
by doublemax
Thu Sep 20, 2018 6:29 am
Forum: Compiler / Linking / IDE Related
Topic: wx compilation freezes ubuntu [SOLVED]
Replies: 6
Views: 54

Re: wx compilation freezes ubuntu [SOLVED]

I'm no Linux expert, but to me it sounds like you're running out of memory. How much RAM does the PC have?

Try "make -j2" to use only 2 cores.
by doublemax
Wed Sep 19, 2018 9:50 pm
Forum: C++ Development
Topic: Unable to Handle wxEraseEvent?
Replies: 8
Views: 67

Re: Unable to Handle wxEraseEvent?

It is legal to have multiple event handlers for the same event for the same wxEvtHandler object, yes?
Probably yes. (not 100% sure though). But only the the first one will get executed unless it calls "wxEvent::Skip()".
by doublemax
Wed Sep 19, 2018 9:24 pm
Forum: C++ Development
Topic: Unable to Handle wxEraseEvent?
Replies: 8
Views: 67

Re: Unable to Handle wxEraseEvent?

I'm doing the Bind() inside Create(), near the end.
Yes, but do you call Create() for the base class or create it in any other way?
by doublemax
Wed Sep 19, 2018 8:19 pm
Forum: C++ Development
Topic: Unable to Handle wxEraseEvent?
Replies: 8
Views: 67

Re: Unable to Handle wxEraseEvent?

For instance, if I change the superclass (for the class in question) to a class that has a wxEraseEvent handler Bind()'d, the superclass's handler gets called, but not the subclass's. That's interesting. Is the base class already fully created when you make the Bind call? For a test, can you try us...
by doublemax
Wed Sep 19, 2018 6:39 am
Forum: C++ Development
Topic: PaintEvent-handler does not paint [SOLVED]
Replies: 7
Views: 103

Re: PaintEvent-handler does not paint [SOLVED]

Puh! (...once again). Some days ago, i had a problem with my compiler-settings. It took me more then one day to get it to work again. Concerning this, i'm quiet stupid. I would like to learn more about this (i also still use the even more ancient devC-IDE, because until now i was not able to compil...
by doublemax
Wed Sep 19, 2018 5:20 am
Forum: C++ Development
Topic: Unable to Handle wxEraseEvent?
Replies: 8
Views: 67

Re: Unable to Handle wxEraseEvent?

I can also put a breakpoint in wxWindowMSW::MSWHandleMessage() [src/msw/window.cpp] and see that the windows message is coming in for my object. In that case, why didn't you step a little further into the code and see where it takes you? In the whole path there few conditions that could prevent the...
by doublemax
Wed Sep 19, 2018 5:06 am
Forum: General Development
Topic: I/O text file in Unicode Path
Replies: 2
Views: 50

Re: I/O text file in Unicode Path

This should work right away just like with any other filename.
by doublemax
Tue Sep 18, 2018 8:29 pm
Forum: C++ Development
Topic: PaintEvent-handler does not paint [SOLVED]
Replies: 7
Views: 103

Re: PaintEvent-handler does not paint [SOLVED]

If even you have no idea what change could be responsible, how should anyone else know? :) For a start, disable your complete OpenGL drawing code and just draw a triangle with OpenGL primitives. If that works, draw a textured triangle. And so forth. You just have to find out piece by piece what work...
by doublemax
Tue Sep 18, 2018 6:34 pm
Forum: C++ Development
Topic: wxBU_EXACTFIT in wxGTK doesn't seem to work.
Replies: 2
Views: 50

Re: wxBU_EXACTFIT in wxGTK doesn't seem to work.

How did you create the GUI? Pure code or with a GUI editor?

Are there any sizers involved? It's possible that a sizer is overriding the size.
by doublemax
Tue Sep 18, 2018 1:17 pm
Forum: C++ Development
Topic: Which code is faster
Replies: 1
Views: 46

Re: Which code is faster

I wouldn't expect any measurable difference between the two. The wxString version has the small advantage that it stores the length of the string, and if the length of the two strings is different, the comparison will immediately return false. I'd suggest to write a small benchmark yourself and try ...

Go to advanced search