Click or drag to resize

app_response_callback Delegate

Displays a dialog box containing a question and an entry field for the user to reply to the question.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public delegate int app_response_callback(
	IPDF_JSPLATFORM pThis,
	string Question,
	string Title,
	string Default,
	string cLabel,
	bool Password,
	IntPtr buffer,
	int buflen
)

Parameters

pThis  IPDF_JSPLATFORM
Pointer to the interface structure itself
Question  String
The question to be posed to the user.
Title  String
The title of the dialog box.
Default  String
A default value for the answer to the question. If not specified, no default value is presented.
cLabel  String
A short string to appear in front of and on the same line as the edit text field.
Password  Boolean
If true, indicates that the user's response should show as asterisks (*) or bullets (?) to mask the response, which might be sensitive information. The default is false.
buffer  IntPtr
A string buffer allocated by SDK, to receive the user's response.
buflen  Int32
The length of the buffer, number of bytes. Currently, It's always be 2048.

Return Value

Int32
Number of bytes the complete user input would actually require, not including trailing zeros, regardless of the value of the length parameter or the presence of the response buffer.
Remarks
Required: Yes. No matter on what platform, the response buffer should be always written using UTF-16LE encoding. If a response buffer is present and the size of the user input exceeds the capacity of the buffer as specified by the length parameter, only the first "length" bytes of the user input are to be written to the buffer.
See Also