【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.14.3.16 page_clone
Contents
Description
Clone Graph or Layout
Syntax
bool page_clone( const GraphPageBase & pgSource, GraphPageBase & pgNew, bool bRemoveScalerObj = true, bool bSetNoClick = true, bool bDisableLTEvents = true )
Parameters
- pgSource
- [input] the source page
- pgNew
- [modify] the destination page
- bRemoveScalerObj
- [input] indicates whether to remove axis scoll bar
- bSetNoClick
- [input] whether to disable all options of noClick property
- bDisableLTEvents
- [input] whether to disable all LabTalk events
Return
return true on success, else return false
Examples
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!"); } }
Remark
See Also
Header to Included
origin.h