<< Click to Display Table of Contents >> VpeSetFormFieldFlags |
Sets additional control flags for FormFields.
void VpeSetFormFieldFlags(
VpeHandle hDoc,
long flags
)
VpeHandle hDoc
Document Handle or VPE Object Handle
long flags
possible values are any combination of:
Constant Name |
Value |
Comment |
VFF_FLAG_DIV_FIRST |
1 |
first divider is painted (only, if no frame) |
VFF_FLAG_DIV_LAST |
2 |
last divider is painted (only, if no frame) |
VFF_FLAG_ALT_FIRST |
4 |
(default) first divider is painted as AltDivider (overrides _DIV_FIRST) (only, if no frame) |
VFF_FLAG_ALT_LAST |
8 |
(default) last divider is painted as AltDivider (overrides _DIV_LAST) (only, if no frame) |
VFF_FLAG_AUTO_FONTSIZE |
16 |
(default) font size is computed automatically |
Default:
VFF_FLAG_ALT_FIRST + VFF_FLAG_ALT_LAST + VFF_FLAG_AUTO_FONTSIZE
Remarks:
You can use combinations of the above flags by adding their values. Please note that if you use VFF_FLAG_ALT_FIRST, VFF_FLAG_DIV_FIRST is ignored. Also if you use VFF_FLAG_ALT_LAST, VFF_FLAG_DIV_LAST is ignored.
If you specify VFF_FLAG_AUTO_FONTSIZE, the font size for the FormField is computed automatically according to the available space for a single character. See VpeFormField for details.
"FormFields" in the Programmer's Manual