DBcalculateTextLen

Top  Previous  Next

Calculate from text lengths

With this function the text length can be determined. In addition the segment and the text whose length should be determined must be handed over. If the text cannot be found in the object, becomes 0 zurückgeliefert. The text kind gives whether the text centres, is arranged flush left or flush right.

Parametre

charSegment (PSEGMENT) [IN]

Act on the segment in which the text is searched.

textString (char *) [IN]

The text whose length should be calculated

textart (int) [IN]

Gives whether it is on the left, flush right or centred text.

spreads (long int *) [IN / OUT]

In wide ones the text width is returned.

anzahlZeilen (int *) [IN / OUT]

In anzahlZeilen the number of the lines which the text takes is delivered.

Result

(long int) [OUT]

The calculated length with successful calculation, but 0.

Declaration

#include "database.h"

 

long int DLLENTRY DBcalculateTextLen (

PSEGMENT charSegment,

char * textString,

int textart

long int * spreads,

int * anzahlZeilen

);

Constants

TEXT_MODE_LEFT

TEXT_MODE_RIGHT

TEXT_MODE_CENTER

Constants give the text adjustment.