TEXTFIELD (original) (raw)
Summary
Stores characteristics of the Text Field.
Syntax
typedef struct TEXTFIELD
{
[L_UINT](leadtools-basic-data-types.html) uStructSize;
[RECT](windows-structures.html) rcBounds;
[RECT](windows-structures.html) rcFilledAreaBounds;
[RECT](windows-structures.html) rcSpaceBounds[2];
[L_BOOL](leadtools-basic-data-types.html) bIsFilled;
[L_UINT](leadtools-basic-data-types.html) uFieldType;
} TEXTFIELD, * pTEXTFIELD;
Members
L_UINT uStructSize
Size of this structure in bytes, for versioning. Use the sizeof(TEXTFIELD)
operator to calculate this value.
RECT rcBounds
The total bounding rectangle for a field.
RECT rcFilledAreaBounds
The bounding rectangle for a filled part of the field (if the field is empty, the rectangle will be { 0,0,0,0 } and bIsFilled will be false).
RECT rcSpaceBounds[2]
Array of two rectangles for empty spaces in field.
L_BOOL bIsFilled
Boolean flag indicating whether TEXTFIELD is filled. Possible values are:
Value | Meaning |
---|---|
TRUE | The field is filled (the rcFilledAreaBounds will not be empty). |
FALSE | The field is not filled. |
L_UINT uFieldType
Parameter specifying the type of text field. The following values are possible:
Value | Meaning |
---|---|
TEXT_FIELD_TYPE_LINE | [0] Line Field. |
TEXT_FIELD_TYPE_BOX | [1] Box Field. |
TEXT_FIELD_TYPE_CELL | [2] Cell Field. |
Comments
If the text field is empty, then rcFilledAreaBounds
is {0,0,0,0}.
If the text field is not filled, then the values of the two rectangles of rcSpaceBounds
are {0,0,0,0}.
The first rectangle of rcSpaceBounds
is for the empty space, if there is any on the top or the bottom of the filled area. However, if there is no empty space the value of the rectangle is {0,0,0,0}.
The second rectangle of rcSpaceBounds
is for the empty space, if there is any on the right side of the filled area. However, if there is no empty space the value of the rectangle is {0,0,0,0}.