What is Guides Distance?

Guides Distance is a macro that displays the distance between two selected parallel guidelines. This allows a pair of guidelines to be used as a measuring tool.

The units used for the displayed distance can be controlled by the user. It can automatically follow the units currently in use for the horizontal rulers, or it can be set to use specific units.

The user can set the number of decimal places used when displaying the distance, and can also set whether trailing zeros are shown.

The macro can also be used to copy the displayed value to the Clipboard.

See Guides Distance in use:

Screenshot:

Using the macro.

The macro is a userform with a single textbox. When two parallel guidelines are selected, the textbox displays the distance between them.

Right-clicking on the textbox brings up a menu. A submenu allows one to specify the number of decimal places used when displaying the value.

Another submenu allows one to specify the units used when displaying the value.

The number of decimal places can be set (and is remembered by the macro) independently for each unit.

The right-click menu also provides a way to set whether trailing zeros are shown.

The right-click menu also provides the ability to copy the displayed value to the Clipboard.

CorelDRAW's Selection Groups.

CorelDRAW selection groups can be very useful when using this macro. Create a selection group with two guidelines, and those guidelines can then be selected with a single keystroke. You can learn more about selection groups here: Creating a selection group (Corel Discover Center).

Subs in the Macro Manager.

  • Start_Guides_Distance launches the userform if it is not already open.
  • Toggle_Guides_Distance launches the userform if it is not already open, and closes it if it is already open.
  • Remove_Guides_Distance_Registry_Entries removes all Registry entries that have been created by the macro. The next time that the macro is used, these entries will be created again, so this sub can be used to get a “fresh start” with default values and settings.
  • The macro normally remembers the position of the form on the screen. If the computer display configuration has been changed in such a way that the remembered position is “off the screen”, then Reset_Guides_Distance_StartUpPosition can be used to reset the position to “Center Owner”.

Compatibility.

Guides Distance was put together in a CorelDRAW X7 environment, and should work in versions X7-2020.

OK, where's the macro?

Guides_Distance_Current.zip (most recently updated 2020-07-19).

That includes the .GMS file and a simple icon that can be used on a CorelDRAW Toolbar.

  • 1 comment
  • 0 members are here
Anonymous