Thank you, but unfortunately it is not so easy: The auiframe example uses a2dDocumentViewScrolledWindow, which does not know about GetCanvasView().
When I use a2dCanvasSim (which is derived from a2dDocumentViewScrolledWindow and knows GetCanvasView() again), the first constructor parameter, a2dView* view is missing. It compiles, and I can zoom :-) But I can not draw the example's doodle line anymore. Something is messed up. At least the mouse events do not arrive anymore where they should. 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 do not get, why there exists wxScrolledWindow to a2dCanvasSim and wxWindow to a2dCanvas in parallel. And which one is preferable in my case. I need scrollbars on my notebook's drawing pages. I have some documents, and each doc gets exactly one page of it's own. So doc, view and window are in fixed relationship. Additional views, may exist for printing only. Viele Grüße, Michael Bionic Badger schrieb: > On Sat, Jul 18, 2009 at 11:09 AM, Michael Stratmann<stratm...@micst.de> wrote: >> some examples, e.g. sample_editor_wires, support zoom by the mouse wheel. >> Others, e.g. sample_docview_aui, do not. >> >> What is the relevant difference, so I can use the zoom? Where is the event >> handler coded? I would like to update some control in my toolbar or >> statusbar to show the actual zoom level. > > I think you need to add a tool controller for your canvas view: > > m_contr = new a2dStToolContr(m_canvas->GetCanvasView() ,this); > > That enabled the zoom in mine. > > I do wish I could override some of the controls though, but I'm not > sure how it is done. Particularly, I'd like to make it so I can > enable a hand tool when the spacebar is pressed. ------------------------------------------------------------------------------ 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