Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.SetFieldColor
Sets a specific color of an interactive form field.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 4.0 | Yes | Yes | Yes | Yes | Yes |
MBS( "DynaPDF.SetFieldColor"; PDF; Field; ColorType; CS; Color ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. | ||
| Field | The field index or field name. | "FirstName" |
| ColorType | The type of color. Can be BackColor, BorderColor or TextColor. | "TextColor" |
| CS | The color space. Can be DeviceRGB, DeviceCMYK or DeviceGray. | "DeviceRGB" |
| Color | The color value to use. | MBS( "DynaPDF.RGB"; 0; 0; 255 ) |
Result
Returns OK or error.
Description
Sets a specific color of an interactive form field.The background and border color of a form field must be defined in the same color space. The color space for the text color can be defined in a separate color space (e.g. DeviceGray for the text and DeviceRGB for the background and border).
If the border or background should appear transparent set the value to NO_COLOR (4294967281). The text color cannot be transparent.
You can use DynaPDF.RGB function to calculate RGB color value.
See also SetFieldColor function in DynaPDF manual.
See also
- DynaPDF.CreateButton
- DynaPDF.GetFieldColor
- DynaPDF.RGB
- DynaPDF.SetFieldBackColor
- DynaPDF.SetFieldFontEx
- DynaPDF.SetFieldIndex
- DynaPDF.SetFieldName
- DynaPDF.SetFieldTextColor
- DynaPDF.SetFieldToolTip
- DynaPDF.SetFillColor
Example Databases
Created 18th August 2014, last changed 18th August 2014
DynaPDF.SetFieldBorderWidth - DynaPDF.SetFieldDate
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins