About replacement of library objects on page

Build 1501 on 14/Nov/2017  This topic last edited on: 27/Apr/2017, at 13:39

When you drag a library object on a page and another page object is selected, Fred4 prompts you to confirm the replacement, and then - if you confirm - it replaces the selected object with the library object.

If you click No when prompted for the replacement, Fred4 displays the shape of the library object on the pointer, and lets you decide about its position.

A left click drops the library object on the page.

Scaling the replacement object

By default, Fred4 scales the library object to the original dimensions of the selected placeholder. The scaling and replacing follows the rules as specified in the Tool properties of all elements of a library object. See Tool for Library Objects for details. The replacement will work the best for the simple objects, i.e. when replacing a frame with a image box, a headline box with another headline box and so on. When replacing complex objects (e.g. a paginated article), if the library object was configured appropriately, it will auto-adjust perfectly to the existing shape, and it will also auto-link to the existing article.

Maintaining the size of the replacement object

To keep the size of the replacement object, put the following Tool attributes to the Fixed value: Position, Width, Height. Untick Clip (see Attributes for runaround and clipping).

Disable replacement warning if there are selected objects

You can disable the replacement warning if dragging a library object over selected objects, if you add "+8" to the flags string of the Page.AddLibObjId or Page.AddLibObj commands.

About replacement of library objects not on 0,0

The replacement of library objects not on 0,0 can cause problems, as the replacement object will be shifted down and right for the offset from 0,0.

To avoid it, add to such a library object an invisible box (transparent, with no border), that starts at 0,0.