Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 647

Previous Page 646   Index   Next Page 648

Function Reference
Page 647 of 750
SetFieldTextColor
Syntax:
LBOOL pdfSetFieldTextColor(
const PPDF* IPDF, // Instance pointer
UI32 Color)
// Text color defined in the current color space
The function sets the text color which is used for newly created interactive form fields. The color
value must be defined in the current color space. The color space must not be changed before the
fields are created which should use this color.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldToolTip
Syntax:
LBOOL pdfSetFieldToolTip(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
const char* Value) // Tool tip
The function set or changes the tool tip or description string of an interactive form field. The
parameter AField must be a valid field handle.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. The Ansi Version
supports Ansi strings of the code page 1252 only. To create a description string in an arbitrary
encoding convert the string to Unicode with the function ConvToIncode() first and use the Unicode
version to apply the string.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFillColor
Syntax:
LBOOL pdfSetFillColor(
const PPDF* IPDF, // Instance pointer
UI32 Color)
// Color value defined in the current color space
The function sets the fill color. The parameter Color must be defined in the current color space. For
example, if the current color space is DeviceGray the color value must be in the range 0 to 255.
CMYK colors can be constructed with the macro PDF_CMYK() or with the function CMYK() which
is available in most programming languages. RGB colors can be constructed with the macro
PDF_RGB() or with the function RGB() which is available in most programming languages.
 

Previous topic: SetFieldTextAlign

Next topic: SetFillColorF