Description
Move the specified edge of the selected page object(s) in the specified direction for the specified step.
It is a parameterized script, so you can call it with parameters directly from a menu option, toolbar icon, or shortcut key. See Script calls syntax (menus, toolbars, keys).
Syntax
ObjSize (sParam) |
sParam
a string, composed of three, comma-delimited, parts, e.g. "U,P"
First part is "move direction", and it can be D(own), L(eft), U(p), R(ight)
Second part is "edge", and it can be D(own=bottom), L(eft), U(p=top), R(ight)
Third part can be:
If the first parameter is L or R:
•C > column width as on page
•c > half column
•P > 1pt
•g > column gutter
•#xx > measure
If the first parameter is U or D::
•V > vertical nudge value (either vg or module height)
•W > half as V*2
•P > 1pt
•#xx > measure
Examples of calls
<!--Bottom edge -->
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="D,D,V" Modifiers="Shift" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="D,D,P" Modifiers="Shift,Alt" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="U,D,V" Modifiers="Shift" Key="Up"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="U,D,P" Modifiers="Shift,Alt" Key="Up"/>
<!--Top edge -->
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="D,U,V" Modifiers="Shift,Ctrl" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="D,U,P" Modifiers="Shift, Ctrl, Alt" Key="Down"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="U,U,V" Modifiers="Shift, Ctrl" Key="Up"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="U,U,P" Modifiers="Shift,Ctrl,Alt" Key="Up"/>
<!--Right edge -->
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="R,R,C" Modifiers="Shift" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="R,R,P" Modifiers="Shift,Alt" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="L,R,C" Modifiers="Shift" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="L,R,P" Modifiers="Shift,Alt" Key="Left"/>
<!--Left edge -->
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="L,L,C" Modifiers="Shift,Ctrl" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="L,L,P" Modifiers="Shift,Ctrl,Alt" Key="Left"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="R,L,C" Modifiers="Shift,Ctrl" Key="Right"/>
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjSize" Param="R,L,P" Modifiers="Shift,Ctrl,Alt" Key="Right"/>
See also