Bionic Badger wrote:
> On Sat, Jul 18, 2009 at 2:52 PM, Michael Stratmann<stratm...@micst.de> wrote:
>   
>> I wonder, if and how I can combine a2dCanvas with my auiFrame's auiNotebook. 
>> Then I could go with the regular circle, rectangle etc. tools. I just 
>> started with doodleline because all docview examples use it.
>>     
>
> I use an a2dDocumentFrame with its view set to NULL, and then create
> my own canvas in one of the panels, and grab *its* view for attaching
> the tool to. 
a2dEditorFrame derived from a2dDocumentFrame, and explains the idea 
(creating a canvas and such).
But the view needs to be set for the a2dDocumentFrame somehow to 
redirect events the right way to view.
See a2dDocumentFrame::ProcessEvent()

>  The a2dDocumentFrame is basically a regular wxFrame with
> some extra setup for wxArt2D.  I think it can work for AUINotebook as
> well.  I know I do have AUINotebooks inside that GUI; you just need to
> create a canvas in one of the panels.
Right, just make sure the notebook redirect event correctly to views. I 
think you need to set the view(of a2dCanvas) of/in the active notebook 
page to the a2dDocumentFrame.
So frame event go to a2dCanvasView.
Maybe have a look at the mars application, where its done.

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