Quick PDF logo

SetFormFieldIcon

Form fields

Description

Sets the icon of a button form field. To create an icon: add a new page to the document, set the size and draw images or text onto the page, and then capture the page using the CapturePage function. For a "down" or "rollover" icon to be displayed correctly the form field's hightlight mode must be set to "push", see the SetFormFieldHighlightMode function.

Syntax

Delphi

function TQuickPDF0813.SetFormFieldIcon(Index, IconType, 
  CaptureID: Integer): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::SetFormFieldIcon(Index As Long, IconType As Long,
  CaptureID As Long) As Long

DLL

int QuickPDFSetFormFieldIcon(int InstanceID, int Index, int IconType, int CaptureID)

Parameters

Index The index of the form field
IconType The type of icon to assign:
0 = Normal icon
1 = Rollover icon
2 = Down icon
CaptureID The ID returned by the CapturePage function

Return values

0 The form field could not be found or the parameters were invalid
1 The specified icon of the form field was set successfully

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum