ObjInflateSgmDlg Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:15

Description

Displays a dialog box to resize a shape.

Syntax

Page.ObjInflateSgmDlg

Remarks

"Free" boxing method is the boxing method suitable only for single frames, because it is not capable to calculate correctly the interspaces between multiple frames (see "Proportional Boxing Method" for that purpose). This method may be selected in the boxing dialogue box by choosing the mode "free" and the VB script by setting the 5th parameter of ObjInflateSgm command to "F+".

fred_boxing1

The frame is shifted down and right for the value, equal to the top and the left margin (6pt). Its horizontal and vertical coordinates are:

before resizingafter resizing        
0 pt6pt        
0 pt6pt        

_note        The border weight is not included in the calculation. Therefore, the real white space between the frame and the border is not 6pt, but 6pt - border weight of 1pt, therefore the space is 5pt.

 

The frame is also shrunk, otherwise it would remain outside of the box. The frame width is reduced for the sum of the left and the right margin, and the frame height is reduced for the sum of the top and the bottom margin.

 

Proportional boxing method is the only suitable boxing method for multiple frames, such as headline frame and more than 2 legs. It allows the proportional resizing of all the included frames, keeping the same width for all the column frames. When boxing a single frame, use "Free" Boxing Method instead. This method may be selected in the boxing dialogue box by choosing the mode "proportional" and the VB script by setting the 5th parameter of ObjInflateSgm command to "P+".

 

fred_boxing2

 

Headline frame: The headline frame (1) is shifted down and right for the value, rather close to the top and the left margin (6pt). Its horizontal and vertical coordinates are:

before resizingafter resizing        
0 pt 6.64pt        
0 pt 6.745pt        

 

_note        The weight of the border is not included in the calculation. Therefore, if the border is rather thick, you will have to add it to the margins. In any case, the distance between the border and the frames is never equal to the specified value, because of unavoidable rounding during the calculations of proportions.

 

The headline frame is also shrunk, otherwise it would remain outside of the box.

Column frames: The column frames (2) are shifted down and right as the headline frame, and their height and width is reduced.

The distance between the headline frame and the column frames is reduced too.

Position respecting boxing method is suitable only for boxing multiple frames, such as headline frame with less than 3 legs. It allows the proportional resizing of all the included frames, keeping the same width for both column frames. When boxing a single frame, use "Free" Boxing Method instead. When boxing multiple frames, such as headline frame with more than 2 legs, use "Proportional Boxing Method" instead. This method may be selected in the boxing dialogue box by choosing the mode "respecting the position" and the VB script by setting the 5th parameter of ObjInflateSgm command to "D+".

Context

Page designer

See also

ObjInflateSgm, ObjInflateSgmEx