DBaddStringExisting |
Top Previous Next |
Add of a new line element to the object. Every object can contain any number of line trains. A line train is not necessarily coherent. He exists rather of a result of lines, cuttings of a circle and split pin which own a sign key and a shading as common qualities. The sign key gives the kind of the bordering line trains. The shading gives the filling of the inner surfaces. If the shading 0 is, it concerns not a surface, but a line train. With DBaddStringExisting an empty line train is suspended to the handed over object. The function delivers the trading of the line train as a result. With the function DBaddPoint can be added to the line train then points. Parametre object (POBJECT) [IN] Herewith the object in which the new line element is inserted is determined. forms (int) [IN] Gives whether it concerns with this element one with 2-dimensional or 3-dimensional co-ordinates. There are predefined constants: FORMAT_2D and FORMAT_3D. However, the values 0 can be also given for 2-dimensional and 1 for 3-dimensional co-ordinates. Sign key (int) [IN] With this value the appearance of the border of the surface, or the line train becomes certainly. The value serves as an index in the table of the sign keys, so that all line trains with the same sign key can receive a new appearance by changing this table. schraffur (int) [IN] How the sign key determines the border, the inside of the line train is determined with the shading. As a special case, on this occasion, serves the value 0. If is the sign key of a string 0, it concerns a line train. If he has passed away of 0, it concerns a surface. With surfaces the filling pattern and the kind of the filling is also fixed by a table. schraffur the index is in this table id (ULONG) [IN] sysId (ULONG) [IN] ID of the new line element. These are not ordinarily known and can be given with 0. Then the call corresponds to the function DBaddString. Result (PSTRING_ELEMENT) [OUT] By perfect implementation becomes a trading on the new line element zurückgeliefert, otherwise ZERO. Declaration #include "database.h"
PSTRING_ELEMENT DLLENTRY DBaddStringExisting ( POBJECT object, int format, int zeichenschluessel, int schraffur, ULONG id, ULONG sysId ); Constants STRING_ELEMENT_3D Related functions Marker element in the object generate. PPOINT_ELEMENT DLLENTRY BaddPointElement (
|