Hi Klaas,

My IDE marked them as errors. I didn't notice that they were only warnings. I got the first problem fixed. BUT I'm having a lot of difficulty getting events connected properly in wxArt2d. I was hoping you could steer me in the right direction. Here's what I have (and need):

I have a wxDialog which has a a2dCanvas in it. I want the user to be able to draw and edit rectangles on the canvas, but I need to capture data about the rectangles. The only things I need are: - I need to know when a new rectangle is created, and need to get a pointer to the rectangle. - I need to know when an existing rectangle is edited (moved or resized only), and be able to access the new dimensions of the rectangle.

I've tried connecting wxEVT_CANVASOBJECT_RESIZE_EVENTs to the rectangle and giving the rectangle an event handler function, I've tried the same giving my wxDialog class the event handler function. I've tried connecting many different types of events to the a2dstToolContr, I've tried deriving my own rectangle class and connecting events, I've tried deriving my own tool control from a2dstToolContr and connecting events, I've tried getting events from the a2dDrawRectangleTool, and I can't get anything to work.

How do I capture these events?

I appreciate how responsive you are, thanks!
- Mike

On 10/21/2016 10:56 AM, klaas.holwerda wrote:
Hi Mike,

All/Mostly warnings I would say, it does compile I see.
Only when linking there is a problem.

Did you set the verbose flag in cmake?

I don't see any libraries linked.

What real errors do you see ?

Regards,

Klaas

PS I do not test mingw, but on Linux it compiles oke.

On 10/21/2016 12:43 AM, Mike Gibson wrote:

Hello,

We have a project that we're trying to upgrade from wxWidgets 2.8.11 to wxWidgets 3.0, and we are simultaneously upgrading to wxArt2d 963.

We were able to compile the wxArt2d library against wxWidgets, however, the project will not compile.

The project was able to compile with no errors before the upgrades. We are seeing some weird errors in wxArt2d modules, so I decided to attempt to compile the wxArt2d sample project samples/canvas/simple.

Here is a sample of some of the errors:

C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1323|warning: unused variable 'root' [-Wunused-variable]|

C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2236| required from 'void a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::CreateMetaFileW() const [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'|

C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|1991| required from 'size_t a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::GetDataSize(const wxDataFormat&) const [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut; size_t = unsigned int]'|

C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485| required from here|

-------------------------------------------------------

C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2252| required from 'void a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::CreateBitmap() const [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut]'|

C:\Users\mike_gibson\Documents\source_pool_built_20161020-0937\built\0001\wxart2d\include\wxart2d\wx\canvas\drawer.h|2010| required from 'size_t a2dDnDCanvasObjectData<parserTypeIn, parserTypeOut>::GetDataSize(const wxDataFormat&) const [with parserTypeIn = a2dIOHandlerCVGIn; parserTypeOut = a2dIOHandlerCVGOut; size_t = unsigned int]'|

C:\Users\mike_gibson\Downloads\wxart2d-code-963-trunk\wxart2d-code-963-trunk\wxArt2D\packages\wxart2d\samples\canvas\simple\simple.cpp|1485| required from here|


What is causing these errors? I've included the entire build log at the end of this message.

Thanks,

- Mike




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to