SetFormFieldResetActionA
Form fields
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetFormFieldResetAction and string arguments are interpreted using the current SetAnsiMode code page
Adds a reset action to a button form field. When actioned all formfields will be reset to their default values.
Syntax
Delphi
Function DLSetFormFieldResetActionA(InstanceID, Index: Integer; ActionType: PAnsiChar): Integer;
DLL
int DLSetFormFieldResetActionA(int InstanceID, int Index, const char * ActionType);
Parameters
| Index | The index of the form field |
|---|---|
| ActionType | The action type:E = An action to be performed when the cursor enters the annotation's active areaX = An action to be performed when the cursor exits the annotation's active areaD = An action to be performed when the mouse button is pressed inside the annotation's active areaU = An action to be performed when the mouse button is released inside the annotation's active areaFo = An action to be performed when the annotation receives the input focusBl = An action to be performed when the annotation loses the input focus (blurred)K = An action to be performed when the user types a keystroke into a text field or combo box or modifies the selection in a scrollable list box. This allows the keystroke to be checked for validity and rejected or modified.F = An action to be performed before the field is formatted to display its current value. This allows the field's value to be modified before formatting.V = An action to be performed when the field's value is changed. This allows the new value to be checked for validity.C = An action to be performed in order to recalculate the value of this field when that of another field changes |
Return values
| 0 | Could not set the field action |
|---|---|
| 1 | Success |