SetFormFieldIcon
フォームフィールド
説明
ボタンフォームフィールドのアイコンを設定する。アイコンを作成するには、ドキュメントに新しいページを追加し、サイズを設定して画像またはテキストをページ上に描画し、CapturePage 関数でページをキャプチャする。"down" または "rollover" アイコンを正しく表示するには、フォームフィールド's ハイライトモードを "push" に設定する必要がある。SetFormFieldHighlightMode 関数を参照
構文
Delphi
Function TPDFlib.SetFormFieldIcon(Index, IconType, CaptureID: Integer): Integer;
ActiveX
Function PDFlib::SetFormFieldIcon(Index As Long, IconType As Long, CaptureID As Long) As Long
DLL
int DLSetFormFieldIcon(int InstanceID, int Index, int IconType, int CaptureID);
パラメータ
| Index | フォームフィールドのインデックス |
|---|---|
| IconType | 割り当てるアイコンの種類: 0 = 通常アイコン、1 = ロールオーバーアイコン、2 = ダウンアイコン |
| CaptureID | CapturePage 関数から返された ID |
戻り値
| 0 | フォームフィールドが見つからないか、パラメーターが無効です |
|---|---|
| 1 | 指定されたフォームフィールドのアイコンが正常に設定されました |