SDK
User interaction

Functions

int SPI_USR_ask_question (const std::string &question, const std::string &answear, int *noButtonClicked)
 Displays a question in the form of a dialog box with buttons for choice of answer.
 

Detailed Description

User interaction

Attention
The functions of this module are reserved for Pascal. They do not work in COM mode (VB net, C ++, C # ...)

Function Documentation

◆ SPI_USR_ask_question()

int SPI_USR_ask_question ( const std::string & question,
const std::string & answear,
int * noButtonClicked )

Displays a question in the form of a dialog box with buttons for choice of answer.

Version
5.10
Parameters
[in]questionquestion text
[in]answeartext of possible answers. Answers must be separated by "-" and started with "-"
[out]noButtonClickednumber of the button clicked. The first button is number 2
Returns
SPI_YES ok, SPI_NO if the user pressed the escape key
Attention
This function is reserved for Pascal. It does not work in COM mode (VB net, C ++, C # ...)
Pascal
ier := ICALL(SPI_USR_ask_question,'Do you want to copy this file','-Yes-No',iret);
Visual basic
ier = GOE.SPI_USR_ask_question("Do you want to copy this file","-Yes-No",iret)
if user press YES button, iret will be set to 2.
if user press NO button, iret will be set to 3.
if user press ESC key, ier will be set to SPI_NO and iret to -1
int SPI_USR_ask_question(const std::string &question, const std::string &answear, int *noButtonClicked)
Displays a question in the form of a dialog box with buttons for choice of answer.
Definition sp_usr01.c:45