 | 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.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic delegate int app_response_callback(
IPDF_JSPLATFORM pThis,
string Question,
string Title,
string Default,
string cLabel,
bool Password,
IntPtr buffer,
int buflen
)
Public Delegate Function app_response_callback (
pThis As IPDF_JSPLATFORM,
Question As String,
Title As String,
Default As String,
cLabel As String,
Password As Boolean,
buffer As IntPtr,
buflen As Integer
) As Integer
public delegate int app_response_callback(
IPDF_JSPLATFORM^ pThis,
String^ Question,
String^ Title,
String^ Default,
String^ cLabel,
bool Password,
IntPtr buffer,
int buflen
)
type app_response_callback =
delegate of
pThis : IPDF_JSPLATFORM *
Question : string *
Title : string *
Default : string *
cLabel : string *
Password : bool *
buffer : IntPtr *
buflen : int -> int
/** @delegate */
public delegate int app_response_callback(
IPDF_JSPLATFORM pThis,
String Question,
String Title,
String Default,
String cLabel,
boolean Password,
IntPtr buffer,
int buflen
)
function(pThis, Question, Title, Default, cLabel, Password, buffer, 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
Int32Number 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.
RemarksRequired: 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