Read and alter copy page and graphic export-related settings
LabTalk Object Type:
The copypage object is a sub-object of the system object. The copypage object properties allow you to read and alter copy page and graphic export-related settings which are set in the OPTION.CNF file. These settings can also be accessed in the Options dialog box.
Please see the expWks, expGraph, expImage X-Function.
Whether to show the bounding box on the graph window. 1 = Show the bounding box. 0 = hide the bounding box.
ClipBorderW and Closeness are related properties. Both properties affect the amount of the page in the graph window that is copied or exported. By default, all the objects within a "bounding box" plus a "border" are copied/exported. ClipBorderW allows you to set a value for the "border" around the "bounding box". This value is the percent of the width of the "bounding box". The default value is 6. Enable or disable the "border" with the Closeness property. (See the Examples section.)
Closeness and ClipBorderW are related properties. Both properties affect the amount of the page in the graph window that is copied or exported. When closeness = 1 (default), copy/export the page within the "bounding box" plus add the "border" set by clipBorderW. When closeness = 2, copy/export only the page within the "bounding box". When closeness = 4, copy/export the entire graph page. (See the Examples section.)
Printer driver used when copying/exporting the page. 1 = Use the current printer driver, regardless of the current view mode. 0 = Use the driver applicable to the current view mode. All view modes except Print View use the screen driver. Print View uses the printer driver. Character positioning is superior using the printer driver, however, a Postscript driver can take longer to generate the image.
Size of the copied/exported page when pasted/inserted into another application. Specify as a percent of the page size in Origin. Set to 100 for 100%, etc.
Redraw the page after copying/exporting: 1 = enable, 0 = disable.
This script sets the border around the graph page "bounding box" to 10% of the bounding box width. It then sets the Copy Page and File:Export Page menu commands to copy/export the bounding box plus the border when selected.