Re: [Wxart2d-users_dev] Delete all objects off a canvas
Status: Beta
Brought to you by:
titato
|
From: klaas.holwerda <ng...@kl...> - 2016-11-08 23:19:18
|
On 11/08/2016 09:59 PM, Mike Gibson wrote:
> So what is the new equivalent of the old
> a2dCanvas::GetRoot()->DeleteContents()?
a2dCanvas now has just an a2dDrawing. So no a2dDocument involved anymore
You could even do without anything dealing with the docview stuff, in your case.
a2dDrawing::GetRootObject()->ReleaseChildObjects();
Don't know how you create the a2dCanvas, but the drawing is available.
Klaas
|