|
- Characteristics of dialog box
- Line break in the dialog box
- Miscellaneous
- Application in the background: Android 10 specific case
Confirm (Function) In french: Confirmer Remarks Characteristics of dialog box - The message is aligned to left.
- The captions of buttons depend on runtime language of Windows (or on the runtime language of browser for a WEBDEV site).
- The maximum number of characters cannot exceed 4096. If a larger string is passed in parameter, it will be truncated.
- The icon displayed (exclamation mark in a WINDEV application, question mark in a WEBDEV application) cannot be modified.
- The title of the dialog box corresponds to the title of the current window (or page).
 To comply with the system specifications, the title of dialog box is empty by default. To define this title, use NextTitle. - To modify or define the title of dialog box, use NextTitle.
Line break in the dialog box The CR string (Carriage Return) can be used to force a break to the next line. For example:
Confirm("The XXX form was modified." + CR + ... "Do you want to save it before exiting?")
is equivalent to:
Confirm("The XXX form was modified.", ... "Do you want to save it before exiting?")
You also have the ability to use the syntax of multiline strings. For example:
Confirm( [ The XXX form has been modified. Do you want to save changes before closing? ])
- Timers (TimerSys) are not stopped when this function is called.
DelayBeforeClosing is used to limit the display duration of the message. The dialog box is automatically closed. For question or confirmation dialog boxes, the default button corresponds to the expected answer. - The text of the buttons is displayed in the system language.
This function must not be used: - in the event "Resizing" of the window. Otherwise, the application will be locked.
- in the event "Changing the orientation" of the window.
- in the event "Move to the foreground" associated with the project.
Remark: However, the function can be used in the event "Move to the foreground" of a window. - in a thread.
Versions 25 and later New in version 25
This page is also available for…
|
|
|
| |
| | Exemplo Confirm
Res is int NextTitle("Modifica o Formulario") Res = Confirm("Primeira Linha."+CR+"TESTE","Seguda Linha?") SWITCH Res CASE Yes: Info("ok") CASE No: Close() CASE Cancel: ReturnToCapture() END
//Blog com Video e Exemplo http://windevdesenvolvimento.blogspot.com.br/2016/07/curso-windev-funcoes-dialogo-1-confirm.html https://www.youtube.com/watch?v=jjBIYgdVK1s
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |