SetFormFieldIcon

表單欄位

描述

設定按鈕表單欄位的圖示。建立圖示的方式:在文件加入新頁面、設定尺寸並畫上影像或文字,再用 CapturePage 函式擷取頁面。要正確顯示 "down" 或 "rollover" 圖示,表單欄位的高亮模式必須設為 "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 = 按下圖示
CaptureIDCapturePage 函式傳回的 ID

傳回值

0找不到表單欄位,或參數無效
1指定表單欄位的圖示設定成功