Search found 13 matches

by tone.garot
Thu May 28, 2015 12:57 pm
Forum: C++ Development
Topic: wxHtmlEasyPrinting problems
Replies: 4
Views: 1566

Re: wxHtmlEasyPrinting problems

Thanks for the reply.

Directing me to the console app did the trick.

I added the following line.

Code: Select all

wxInitializer initializer;
My unit test runs.
by tone.garot
Thu May 28, 2015 12:00 am
Forum: C++ Development
Topic: wxHtmlEasyPrinting problems
Replies: 4
Views: 1566

Re: wxHtmlEasyPrinting problems

Hello, I get the same message described above. I'm writing unit tests using CppUnit with a console main() instead of a GUI. Fairly straightforward. When I try to create a unit test for my PrintController class, the message as described above. The line ( in my PrintController ) in which the message a...
by tone.garot
Mon Apr 06, 2015 7:55 pm
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks wxSmith generated Create() statement
Replies: 3
Views: 1320

Re: Code::Blocks wxSmith generated Create() statement

This is a clever work around!

Yet I think I will stick with your second suggestion: "force the size and position just after the auto-generated wxSmith code in your ctor."

Thanks for the answer.
by tone.garot
Fri Apr 03, 2015 5:28 pm
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks wxSmith generated Create() statement
Replies: 3
Views: 1320

Re: Code::Blocks wxSmith generated Create() statement

Oh, and I am aware of the checkboxes in the properties that say:

Use parent from argument
Use ID from argument
Use pos from argument
Use size from argument

It appears that parent and ID work, but pos and size have no discernible effect.
by tone.garot
Fri Apr 03, 2015 5:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks wxSmith generated Create() statement
Replies: 3
Views: 1320

Code::Blocks wxSmith generated Create() statement

When I create a new wxPanel in wxSmith, I have the option to set the constructor arguments. So far so good. However, wxSmith auto-generates the Create() statement not using the constructor arguments. For example, I want the passed "size" to be used upon object creation. wxSmith, however, plugs in wx...
by tone.garot
Wed Jan 28, 2015 8:36 pm
Forum: C++ Development
Topic: assert "m_count > 0" failed in DecRef() when using a grid
Replies: 6
Views: 4147

Re: assert "m_count > 0" failed in DecRef() when using a gri

attr->Clone() was my salvation also.
by tone.garot
Fri Jan 23, 2015 5:45 pm
Forum: C++ Development
Topic: disabling tab traversal
Replies: 5
Views: 1795

Re: disabling tab traversal

This worked for derived classes. Just added the line and bam.

So, how would one do this for a non-derived class?

I have a standard wxBitmapButton that catches tab focus even though I have wxTAB_TRAVERSAL unchecked.
by tone.garot
Tue Jan 20, 2015 6:40 pm
Forum: C++ Development
Topic: wxEVT_SCROLLWIN
Replies: 1
Views: 781

wxEVT_SCROLLWIN

The documentation says that I can use EVT_SCROLLWIN to capture all scroll events, but when I try to Connect to it, there is no wxEVT_SCROLLWIN. This guy noted the same thing (about 1/3 down the page): https://forums.wxwidgets.org/viewtopic.php?t=37442&p=152528 Then he did what I plan to do, which is...
by tone.garot
Fri Jan 09, 2015 9:07 pm
Forum: C++ Development
Topic: size events
Replies: 3
Views: 920

Re: size events

I realize I am a few years late responding to this, but I ran into a similar problem, i.e. knowing when the resize event was done. Scenario: The user can resize the wxFrame by click-dragging the border. If they go beyond a certain threshold, I change the number of columns in a wxGridSizer that sits ...
by tone.garot
Sun Dec 28, 2014 11:44 pm
Forum: General Development
Topic: wxFSVolume - determine if volume has media
Replies: 2
Views: 1195

wxFSVolume - determine if volume has media

I'm trying to get a list of removable media with media in it. Specifically, my machine has a USB card reader with four mounted volumes: J:\ K:\ L:\ N:\ Two currently have media. Can wxFSVolume tell me which have media? Querying flags, kind, writable, and IsOK all come back with the same values for a...
by tone.garot
Fri Dec 12, 2014 5:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Precedure entry point could not be located
Replies: 1
Views: 1075

Re: Precedure entry point could not be located

I found the answer. I pulled a rookie move. I left an old copy of wxmsw30u_gcc_custom.dll lying around.

Anyway, maybe this post will help someone trying to compile libjpeg-turbo into wxWidgets. Works well, and the speed increase is worth it.
by tone.garot
Fri Dec 12, 2014 3:41 pm
Forum: Compiler / Linking / IDE Related
Topic: Precedure entry point could not be located
Replies: 1
Views: 1075

Precedure entry point could not be located

I get the following error in a diaglog box when I try to run my app using wxWidgets-3.0.2 that was built using MinGW, MSYS, and ./configure. The procedure entry point _ZN16wxNonOwnedWindow14DoSetPathShapeERK14wxGraphicsPath could not be located in the dynamic link library wxmsw30u_gcc_custom.dll. Th...
by tone.garot
Thu Dec 11, 2014 5:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Help with linking "minimal" sample in Eclipse
Replies: 1
Views: 1156

Re: Help with linking "minimal" sample in Eclipse

This thread is sort of old, but I ran into something similar that might help someone down the road. I'm using wxWidgets-3.0.2. Also, I used MSYS and ./configure to set up options for the build. I'm also using shared. OK, so my setup is pretty different, but I get the same error messages. That is, un...