Home > Software engineering >  CorelDraw VBA line location coordinates for help [continue]
CorelDraw VBA line location coordinates for help [continue]

Time:10-03

Excuse me! Has length, if the request online point (the node, but 10% of the length of the line segment location) coordinates, is possible, please! How should write, if you can thank you
Assuming that the point is 10% of the length of the


 
Dim As s Shape
The Set s=ActiveSelection. Shapes (1)
MsgBox "line length is:" & amp; (s.C urve. Length * 25.4)

CodePudding user response:

With the aid of API LineDDA?
LineDDA
The LineDDA function determines which pixels should be highlighted for a line defined by The specified starting and ending points.

BOOL LineDDA (
Int nXStart,//x coordinate of the line 's starting point
Int nYStart,//y - coordinate of the line 's starting point
Int nXEnd,//x coordinate of the line 's ending point
Int nYEnd,//y - coordinate of the line 's ending point
LINEDDAPROC lpLineFunc,//a pointer to the callback function
LPARAM lpData//pointer to application - defined data
);

The Parameters
NXStart
Specifies the x coordinate of the line 's starting point.
NYStart
Specifies the y - coordinate of the line 's starting point.
NXEnd
Specifies the x coordinate of the line 's ending point.
NYEnd
Specifies the y - coordinate of the line 's ending point.
LpLineFunc
Pointer to an application - defined callback function. For more information, see the LineDDAProc callback function.
LpData
Pointer to the application - defined data.
The Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Windows NT: the To get extended error information, callGetLastError.

Few
The LineDDA function passes The coordinates for each point along The line, except for The line 's ending point, to The application - defined callback function. In addition to passing The coordinates of a point, this function passes any existing application - defined data.

The coordinates passed to The callback function match pixels on a video display only if The default transformations and mapping modes are 2.

QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi. H.
The Import Library: Use gdi32. Lib.

See Also
Lines and Curves the Overview, the Line and the Curve Functions provides, LineDDAProc


CodePudding user response:

This is the robot's questions?
Similar problems, even the user id number,

CodePudding user response:

Function of the building and development of this plugin is what ah, want to do the CDR plug-in development must be familiar with the API documentation, also can read under the somebody else plug-in code,

CodePudding user response:

Robot problem? Robots come to the question, then you get a robot to perform a minute! Ha ha!
PASCAL program before I actually learned for two years, then found useful information is too little, often a problem must be yourself thinking about a lot of time, it is difficult to search the useful information, and the language is not too popular, well no future, gave up, now only do some sites (PHP) design and advertising design,
The problem is my advertising design in the use of CorelDraw and encounter a problem, see a can't use the button to get the value, is not what development plug-in, because I'm CorelDraw VBA completely do not understand, so not to mention the development!

CodePudding user response:

I mean the other problems of the BBS with automatic program posted on here,
Wmkandyk12373
Wmkandyk12374
Has a new user you ask a question?

CodePudding user response:

Coreldraw vba, there are now function can be achieved
  •  Tags:  
  • VBA
  • Related