Video Youtube
Nessa Aula vou mostrar como Usar Ok/Cancel
In this lesson I will show how Use Ok / Cancel
Dans cette leçon, je vais vous montrer comment utiliser Ok / Annuler
http://doc.windev.com/en-US/?3021004&name=okcancel_function
http://doc.pcsoft.fr/fr-FR/?3021004&name=okannuler_fonction
http://doc.windev.com/en-US/?3021010&name=constants_for_managing_the_dialog_boxes
Blog - WinDev - Curso Funções Dialogo - 001/... - Confirm
Blog - WinDev - Curso Funções Dialogo - 002/... - Okcancel
Blog - WinDev - Curso Funções Dialogo - 003/... - Message
Blog - WinDev - Curso Funções Dialogo - 004/... - toastDisplay
Blog - WinDev - Curso Funções Dialogo - 005/... - YesNo
Blog - WinDev - Curso Funções Dialogo - 006/... - Input
Blog - WinDev - Curso Funções Dialogo - 007/... - Error
Blog - WinDev - Curso Funções Dialogo - 008/... - Gauge
Blog - WinDev - Curso Funções dialogo - 009/... - Info
IF OKCancel("Vamos Gravar") THEN
//Comandos
Info("Comandos")
END
OKCancel (Function)
In French: OKAnnuler
Displays a message in a standard dialog box that proposes "OK" and "Cancel" and returns the user's choice.
To close the window, the user must validate one of the buttons.
WINDEV allows you to apply the skin template of your project to this dialog box. See Customizing the dialog boxes for more details.
Example
// Delete a line with confirmation (yes by default)
IF OKCancel("Delete this record?") THEN
HDelete(CUSTOMER)
END
IF OKCancel("Delete this record?") THEN
HDelete(CUSTOMER)
END
// Choice used to exit from the program
IF OKCancel("Do you want to exit from the program?") = Yes THEN
Close()
END
IF OKCancel("Do you want to exit from the program?") = Yes THEN
Close()
END
// Ask to confirm the deletion of the file whose
// name is found in the FILE_NAME variable, with
// positioning on the "No" button in the OKCancel window
IF OKCancel(No, "Delete the file?") THEN
fDelete(FILE_NAME)
END
// name is found in the FILE_NAME variable, with
// positioning on the "No" button in the OKCancel window
IF OKCancel(No, "Delete the file?") THEN
fDelete(FILE_NAME)
END
Line break in the dialog box
IF OKCancel("Caution: you are going to delete this record" + CR + ...
"Do you want to continue?") THEN
HDelete(CUSTOMER)
END
"Do you want to continue?") THEN
HDelete(CUSTOMER)
END
is equivalent to:
IF OKCancel("Caution: this record will be deleted", ...
"Do you want to continue?") THEN
HDelete(CUSTOMER)
END
"Do you want to continue?") THEN
HDelete(CUSTOMER)
END
Nenhum comentário:
Postar um comentário