CorelScript.EditObjectCommand
 
Function EditObjectCommand(Cmd As Long, x As Long, y As Long, Key As Long, AddToSelection As Boolean) As Long
 
Description
 
Member of CorelScript
 
The EditObjectCommand method lets you change the shape of an object by editing its nodes.
 
 
  
      | 
Parameter
 | 
Description
 | 
      | 
Cmd
 | 
Specifies one of the following values:
 
| • |   | 0 = is equivalent to releasing the mouse 
button. Used with the x and the y 
parameters.
 | 
 
| • |   | 1 = is equivalent to pressing one of the 
nudge or super-nudge keys. Used with 
the Key parameter to indicate which 
nudge key is used.
 | 
 
| • |   | 2 = is equivalent to pressing a key on the 
keyboard. Used with the Key parameter 
to indicate which key is used.
 | 
 
| • |   | 3 = is equivalent to pressing down the 
mouse button. Used with the x and the y 
parameters.
 | 
 
| • |   | 4 = is equivalent to the add node option
 | 
 
| • |   | 5 = is equivalent to the delete node 
option
 | 
 
| • |   | 6 = is equivalent to the join nodes 
option
 | 
 
| • |   | 7 = is equivalent to the break path 
option
 | 
 
| • |   | 8 = makes a node cusped
 | 
 
| • |   | 9 = makes a node smooth
 | 
 
| • |   | 10 = makes a segment straight
 | 
 
| • |   | 11 = makes a segment curved
 | 
 
| • |   | 12 = makes a node symmetrical
 | 
 
| • |   | 13 = is equivalent to the auto-reduce 
nodes option
 | 
 
| • |   | 14 = is equivalent to the extract 
subpath option
 | 
 
| • |   | 16 = toggles the elastic option
 | 
 | 
      | 
x
 | 
Specifies the x-coordinate of a node, in tenths of a micron and relative to the center of the page
 | 
      | 
y
 | 
Specifies the y-coordinate of a node, in tenths of a micron and relative to the center of the page
 | 
      | 
key
 | 
Specifies one of the following values if Cmd has a value of 1:
 
	Specifies one of the following values if Cmd has a value of 2:
 | 
      | 
AddToSelection
 | 
Specifies whether to select multiple nodes (a when Shift is pressed). True (-1) enables this option.
 | 
 
Copyright 2013 Corel Corporation. All rights reserved.