What is Zoom to Selection Plus?

Zoom to Selection Plus is a macro that can zoom (change the view) in a variety of ways, and does so based on the current selection. It can:

  • zoom to selected nodes of one or more Curves
  • zoom to selected lines of a Text shape that is being edited
  • zoom to selected objects
  • zoom to all visible objects
  • zoom to page

From a user standpoint, ZTSP is only one command. What happens when it is used depends on what the current selection is - or, if nothing is selected, what visible objects are present on the page.

For each of those types of zoom, to the rectangular area that bounds the selection, some "padding" can be added to the height and width. The amount of padding can be set by the user, as a percentage of the bounding dimension, with independent values for each of the types of zoom listed above. In addition to that padding, there is a user-settable "minimum view dimension", because one might not wish to zoom "all the way in" on very small selections.

There is also a "light" version that doesn't zoom in quite as many ways. It can:

  • zoom to selected objects
  • zoom to all visible objects
  • zoom to page

The macro also includes a "Zoom to Page Plus" capability. The padding for that is user-settable, so the amount of white space around the page border can be smaller (or larger) than what CorelDRAW produces with its own "zoom to page".

Using the macro subs:

The capabilities described above are provided by simple macro subs that 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. The author assigns F4 to "Zoom to Selection Plus", Ctrl+F4 to "Zoom to Selection Plus Light",  and Shift+F4 to "Zoom to Page Plus".