Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.EditObjectCommand


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.

 
This method must be part of a command block that begins with the CorelScript.BeginEditObject method and ends with the CorelScript.EndEditObject method.

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:
 
0 = nudge left
 
1 = nudge right
 
2 = nudge up
 
3 = nudge down
 
4 = super-nudge left
 
5 = super-nudge right
 
6 = super-nudge up
 
7 = super-nudge down
Specifies one of the following values if Cmd has a value of 2:
 
0 = Home
 
1 = End
 
2 = Tab
 
3 = Esc
AddToSelection
Specifies whether to select multiple nodes (a when Shift is pressed). True (-1) enables this option.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.