What is Saved View Areas?
Saved View Areas is a macro that can get the information about the area that is being viewed in the active window, and then store that information in the document. In this post, I'll refer to that stored information as a Saved View Area (SVA). When an SVA is applied, that stored information is used to set the view area for the active window. This allows one to quickly and easily set a specific view area, and to have a number of such view areas readily accessible.
There are two types of SVA - Page SVAs and Doc SVAs.
A Page SVA is only available for use on the document page in which it is stored. A Page SVA is stored as a Page property, so it "stays with the page" if the page is moved within the document. The macro allows for as many as ten Page SVAs for each document page.
A Doc SVA is not associated with any particular document page, and is available for use on any page of the document. A Doc SVA is stored as a Document property. The macro allows for as many as ten Doc SVAs for a document.
See Saved View Areas in use:
Using the Macro with the Userform.
The userform has a multi-page interface with four pages. Two of the pages have buttons for saving and applying SVAs. One page is for Page SVAs; the other for Doc SVAs.
Right-clicking on one of the "Apply" buttons brings up a context menu with additional options. These options include changing the name of the SVA and deleting the SVA.
If Set Custom Name is chosen, then a dialog appears to allow entry of the name.
When an SVA has been given a custom name, the Apply button for that SVA displays that name.
The other pages of the userform provide tools for deleting multiple SVAs, and for managing the way the userform appears and functions.
If Show form at cursor location is checked, then the userform is displayed with its top left corner at the cursor location. If a keyboard shortcut is used to launch the macro, that allows it to appear “right where one is working”. If that box is not checked, then the userform is displayed at the same position it was in when it was last closed.
If Auto-Close form on Save or Apply is checked, then the form closes when a Save or Apply operation is performed.
The Number of SVAs to show can be set to a value from two to ten. Fewer SVAs displayed allows the userform to be less tall.
Macro subs for the Userform.
There are four subs associated with the userform.
Using the Macro without the Userform.
A number of macro subs are provided to allow Saved View Areas to be used without the userform. These subs can be used as Commands in regular CorelDRAW workspace customization, so they can be used on toolbars or menus, and can have keyboard shortcuts assigned to them.
That is a lot of subs, and the author hardly expects that any one user would use all of them! However, some users may find that they can use a few of those subs very effectively for their work, and wish to to have them readily available, e.g., as keyboard shortcuts.
The operation of the Save and Apply subs is straightforward.
The Apply...ZTTP subs are only a little bit different. If an SVA has been defined, then that SVA is applied. If an SVA has not been defined, then these subs perform a "zoom to page" operation. If the Zoom to Selection Plus macro is also installed, then this is a "Zoom to Page Plus" operation using the stored "padding" setting from there. If ZTSP is not installed, then it is a normal CorelDRAW "zoom to page" operation.
The Apply...Recent subs apply the most recently used SVA.
The Apply...Previous and Apply...Next subs allow one to cycle through the available SVAs.
The Cycle...1_2 subs allow one to bounce back and forth between SVA 1 and SVA 2.
The ways these can be used range from mild to wild. The author typically has keyboard shortcuts assigned to Save_Page_SVA_1 and Apply_Page_SVA_1_ZTTP, and uses Page SVA 1 to temporarily define an "area of interest" in a large page. That makes it easy to Zoom One-shot, work on details, bounce back to viewing the area of interest, and repeat as necessary.
Saved View Areas was put together in a CorelDRAW X7 environment, and should work in versions X7-2020.
OK, where's the macro?
JQ_Saved_View_Areas_Current.zip (most recently updated 2020-05-09).
That includes the .GMS file and a simple icon that can be used on a CorelDRAW Toolbar.
Hi Eskimo. I like all I read about this macro,but I have X5 version. Is there a simple way to modify it? Thanks in advance. Have a nice day