Yesid Hernandez wrote: > Hi all, > > Well I've been using this library to do a set of plots, I haven't be > able to figure out how can a delete a curve from the a2dPlot class. I > want to delete a specific plot among another.
So a2dCanvasXYDisplayGroupAreas ( base of a2dPlot ) has: a2dCurve* GetCurveFromArea(const wxString& curveAreaName, const wxString curvename ); Therefore a2dCurve* p = myplot->GetCurveFromArea( areaname, curvename ); p->SetRelease( true ); p->SetPending( true ); Or if you know the curvearea from a2dCurvesArea* AddCurvesArea(const wxString& curveAreaName ), you can do: a2dCurve* p = myplot->GetCurve( curvename ); p->SetRelease( true ); p->SetPending( true ); Or also more general with events etc., but the above is best/oke here i think. mycurvearea->ReleaseChild( p ) Understand that a2dCurvesArea::GetCurves() is this: a2dCanvasObjectList* GetCurves() { return GetChildObjectList(); } And therefore you can add any a2dCanvasObject as a child to a a2dCurvesArea ( circles, polygons etc. ) Regards, Klaas -- Unclassified ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev