Clone Graph or Layout
bool page_clone( const GraphPageBase & pgSource, GraphPageBase & pgNew, bool bRemoveScalerObj = true, bool bSetNoClick = true, bool bDisableLTEvents = true )
return true on success, else return false
EX1
void page_clone_ex1() { //make sure an active graphpage exists in current project GraphLayer gl = Project.ActiveLayer(); if ( gl ) { GraphPage gpSrc(gl.GetPage()); GraphPage gpNew; gpNew.Create(); if ( page_clone(gpSrc, gpNew) ) printf("Success!"); else printf("Fail!"); } }
origin.h