Search found 867 matches

by eranon
Thu Jun 21, 2018 7:35 pm
Forum: Compiler / Linking / IDE Related
Topic: Certain Path Not Available
Replies: 9
Views: 3649

Re: Certain Path Not Available

OK, then to obtain "C:\wxWidgets\lib\gcc_lib\mswud", you have to build wxWidgets Debug for Windows against MinGW (aka. GCC) under "C:\wxWidgets\lib\gcc_lib" (here "gcc_lib" is arbitrary, you can name it at your convenience).
by eranon
Thu Jun 21, 2018 1:02 pm
Forum: Compiler / Linking / IDE Related
Topic: Certain Path Not Available
Replies: 9
Views: 3649

Re: Certain Path Not Available

As PB told you above, it's not "wxWidget", but "wxWidgets".
by eranon
Thu Jun 21, 2018 12:59 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1 compilation issue...
Replies: 2
Views: 1885

Re: 3.1 compilation issue...

Hello, Are you sure you are testing the wxWigets libs you compiled? Don't you have several wxWidgets whose another one in the PATH for example? Also, take care about the difference between #ifdef and #if: #ifdef indicates that the preprocessor definition is defined whatever its value, while #if will...
by eranon
Tue Jun 19, 2018 9:17 am
Forum: C++ Development
Topic: Enter key does not activate default button when pressed in a wxListCtrl.
Replies: 3
Views: 1898

Re: Enter key does not activate default button when pressed in a wxListCtrl.

Hum, maybe you should take a look at the Dialogs sample, then "Dialogs > Test dialog default action". And see how it reacts on your platform (ie. if the OK command is well triggered on ENTER key when the list box has the focus). If it behaves as expected, you should compare your code and t...
by eranon
Sun Jun 17, 2018 11:57 am
Forum: C++ Development
Topic: Enter key does not activate default button when pressed in a wxListCtrl.
Replies: 3
Views: 1898

Re: Enter key does not activate default button when pressed in a wxListCtrl.

Hello, Not sure, but worth to try: if you put your wxListCtrl and the default button on a wxPanel taking care that this panel hasn't the style wxWANTS_CHARS, the ENTER key should (or could since not tested) be directly adressed to the default button (not redirected to the list control). Otherwise, i...
by eranon
Fri Jun 15, 2018 10:50 am
Forum: Compiler / Linking / IDE Related
Topic: Certain Path Not Available
Replies: 9
Views: 3649

Re: Certain Path Not Available

The first one is certainly this one instead:

Code: Select all

C:\wxWidgets\include\msvc\wx\setup.h
And for the second one you have a useless slash at the end ("setup.h" is a file, not a directory):

Code: Select all

C:\wxWidgets\include\wx\msw\setup.h
by eranon
Tue Jun 12, 2018 10:13 pm
Forum: C++ Development
Topic: How to make two wxPanel instances reflect each other?
Replies: 1
Views: 1114

Re: How to make two wxPanel instances reflect each other?

Hello, It depends if the two frames are in the same process or not. If yes, you can manage to send events from a frame to the other one from the first called event handler. If no, it's about interprocesses communication (for example, in Windows see there ) ; I don't know if wxWidgets provides wrappe...
by eranon
Mon Jun 11, 2018 9:21 pm
Forum: Platform Related Issues
Topic: wxPrinter & Paper Orientation
Replies: 8
Views: 3107

Re: wxPrinter & Paper Orientation

You could provide an option of orientation upstream and then rotate if the user chooses landscape under Mac and Linux only. Also, I don't know (I'm printing in one of my apps, but not fresh) if you decide about the paper size: if yes, you could switch the width and length, then see what happens (wil...
by eranon
Mon Jun 11, 2018 4:37 pm
Forum: Platform Related Issues
Topic: wxPrinter & Paper Orientation
Replies: 8
Views: 3107

Re: wxPrinter & Paper Orientation

Hello, I don't have the direct answer to your concern and no Mac at hand right now, but maybe an indirect idea: what if your rotate by 90° (upstream, I mean) what you have to print?
by eranon
Mon Jun 11, 2018 4:30 pm
Forum: C++ Development
Topic: Multiple source files with a GUI
Replies: 1
Views: 1105

Re: Multiple source files with a GUI

Hello, Typically, you separate any class's implementation (in .cpp file) from its declaration (in .h file) to be able to reference it from outside. If your overall app is in one single file, you don't need any separation, but it's only applicable for tiny tool (to stay clear, I mean). So, it's bette...
by eranon
Sat Jun 09, 2018 3:09 pm
Forum: Compiler / Linking / IDE Related
Topic: ld: symbols not found for architecture x86_64
Replies: 6
Views: 4412

Re: ld: symbols not found for architecture x86_64

Hello, Don't know for your error on macOS 10.13 since I only build in OS X 10.9. About the architecture, you can build both 32-bit and 64-bit flavors of wxWidgets 3.0. For this, you have to indicate the architecture you want in the --enable-macosx_arch option. It can be --enable-macosx_arch=i386 or ...
by eranon
Mon Jun 04, 2018 11:37 am
Forum: C++ Development
Topic: Wxwidget 2.8 - wxPostEvent crashes
Replies: 14
Views: 3620

Re: Wxwidget 2.8 - wxPostEvent crashes

Hello, Read in diagonale, but what if you allocate the event on heap and use QueueEvent?

EDIT: Read you last message above I zapped in a first pass... Well, yes, the use of c_str() is the deep copy doublemax talked about.
by eranon
Sat Jun 02, 2018 2:16 pm
Forum: Compiler / Linking / IDE Related
Topic: ld: symbols not found for architecture x86_64
Replies: 6
Views: 4412

Re: ld: symbols not found for architecture x86_64

Hello, You should show the exact build output and embed it in a block. This said, if your own project doesn't find a wxWidgets symbol for the x86_64 architecture, it's maybe because you didn't build the 64-bit flavor of wxWidgets. I don't use nor know Xcode (I'm building from command line or Code::B...
by eranon
Fri Jun 01, 2018 1:27 pm
Forum: General Development
Topic: wxWidgets docs: Hello World example (pedantry)
Replies: 4
Views: 5033

Re: wxWidgets docs: Hello World example (pedantry)

Hello, It should be of some help to understand the overall picture: https://wiki.wxwidgets.org/Avoiding_Memory_Leaks
by eranon
Fri Jun 01, 2018 1:22 pm
Forum: Compiler / Linking / IDE Related
Topic: Add wxFreeChart tools to Code::blocks
Replies: 1
Views: 1347

Re: Add wxFreeChart tools to Code::blocks

Hello, Better to ask in the Code::Blocks forum: http://forums.codeblocks.org/