DBnewDisplayVector

Top  Previous  Next

This call generates a new vector in the data bank which is always indicated.

This vector is accommodated in own object in a string element which exists of two points.

Elements of the data bank are ordinarily indicated exactly when the objects to which they belong are selected. An exception form the objects and with it elements which are put on in the segment with the ID 65535 (if this segment exists). All these objects are always indicated. Otherwise can be worked with this segment normally. Objects from this segment cannot be only selected. Now with the procedure DBnewDisplayVector this segment 65535 is put on, if it does not exist yet. Then an object is generated in this segment and is generated in this object a string element. Then this element receives both points of the vector added. If this has tramped everything perfectly, the string is delivered as a result. In case of a mistake the value ZERO is delivered.

Parametre

root (PROOT) [IN]

The trading of the data bank

x1 (stands in) [IN]

x co-ordinate of the starting point of the distance newly to be marked.

y1 (stands in) [IN]

Y co-ordinate of the starting point of the distance newly to be marked.

x2 (stands in) [IN]

x co-ordinate of the terminator point of the distance newly to be marked.

y2 (stands in) [IN]

Y co-ordinate of the terminator point of the distance newly to be marked.

typeOfInfo (int) [IN]

FD_USE_PEN or FD_USE_COLOR

In the first case the next parametre is accepted as a pencil number for one of 16 Gradisfarben, in the second case it is a RGB value with blue in the down valued byte. Then the colour value stands in the variables colorVal.

colorVal (unsigned long int) [IN]

see variables typeOfInfo

spread (int) [IN]

Width of the line in 1/100 mm. The value 0 leads to a line with minimum width.

lineType (int) [IN]

Type of the line. Different types, possibly pulled through, are sketched, defined etc. The constants are suitable:

DRAW_LINETYPE_DEFAULT 0

DRAW_LINETYPE_DOT 1

DRAW_LINETYPE_SHORTDASH 2

DRAW_LINETYPE_DASHDOT 3

DRAW_LINETYPE_DOUBLEDOT 4

DRAW_LINETYPE_LONGDASH 5

DRAW_LINETYPE_DASHDOUBLEDOT 6

DRAW_LINETYPE_SOLID 7

Result

(PSTRING_ELMENT) [OUT]

If the procedure was worked on perfectly, it delivers the trading on the string. But she delivers the value to ZERO.

Declaration

#include "database.h"

 

PSTRING_ELEMENT DLLENTRY DBnewDisplayVector (

PROOT root,

stand in x1,

stand in y1,

stand in x2,

stand in y2,

int typeOfInfo,

unsigned long int colorVal,

int spreads,

int linetype

);