Michael Stratmann wrote:
> Hi, I create m_canvas like you do. 
>
> >From the aui-example I believe I should use the notebook connector. The 
> >compiler gives the wrong error (in the right place). I do not understand 
> >enough about the different connector classes, only the a2dViewConnector is 
> >documented well. Don't you use a connector? 
>   
connectors connect a2dView's to wxWindow's, and a view on itself is 
nothing and a wxWindow same. So yes it is derived classes what normally 
goes in. And a2dCanvas and a2dCanvasView, is such a couple. Still 
connectors do the work. And and a2dCanvasView is derived from a2dView, 
so will work.
A page in a notebook is a a2dCanvas or any other wxWindow.
> This code fails (compiler does not know which constructor to use), it clearly 
> demands a view. When I replace paramter "view" by "dynamic_cast<a2dCanvasView 
> *>(view)" things work.
>   
Well whatever you are doing, casting is a very normal thing to do 
sometimes. But a connector clearly takes a window are frame as parent.
It receives events to connect new view (e.g a2dCanvasView) to that 
window(e.g. a2dCanvas). So no constructor taking a view??
> Honestly, I am confused. There appear to be many ways to get it working. But 
> I do not see one.
>   
Yep,  but eventually you will.

Klaas

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to