DBnewDisplayStringColored

Top  Previous  Next

This call generates a new string element in the data bank which is always indicated, with colour default.

Ordinarily are indicated element of the data bank 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 DBnewDisplayStringColored 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. The trading of this string element is returned as a result. If a mistake appears, this becomes instead of this zero-acts as a result delivered. The string element receives his line representation (colour, width...) not about the sign key (DKY) but about firm values.

Parametre

root (PROOT) [IN]

The trading of the data bank

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_ELEMENT) [OUT]

The trading of the new string element. It can be used up to selecting the accompanying object as a normal element.

Declaration

#include "database.h"

 

PSTRING_ELEMENT DLLENTRY DBnewDisplayString (

PROOT root,

int zeichenSchluessel,

int schraffur

);