PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Characteristics of dialog box
  • Line break in the dialog box
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Displays a custom information message inside a system info box for a specified amount of time. After the timeout, the system window is automatically closed.
Example
// Displays an information window
// with automatic closing after 10 seconds
InfoWithTimeout(1000, "Operation successful")
Syntax
InfoWithTimeout(<Timeout> , <Text> [, <Line 2> [... [, <Line n>]]])
<Timeout>: Integer ou Duration
Amount of time (expressed in hundredths of a second) before automatically closing the system information window. This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
<Text>: Character string (with quotes)
Text to display.
<Line 2>: Optional character string (with quotes)
Text displayed on the next line.
<Line n>: Optional character string (with quotes)
Text displayed on the following lines.
Remarks

Characteristics of dialog box

  • The title of dialog box corresponds to the title of current window. To modify this title, use NextTitle.
  • The message is aligned to left.
  • The button caption depends on the runtime language of Windows.
  • The maximum number of characters cannot exceed 4096. If a larger string is passed in parameter, it will be truncated.
  • The icon displayed (information tooltip) cannot be modified.
  • WINDEV To customize this dialog box (as well as all the system dialog boxes of your application), check "Apply the skin template theme to the system windows (Info, YesNo, Confirm, Dialog)" in the "Style" tab of project description. See Customizing dialog boxes for more details. WINDEV To customize this dialog box (as well as all system dialog boxes of your application), check "Customize the system windows (Info, YesNo, Confirm, Dialog)" in the "Style" tab of the project description. See Customizing dialog boxes for more details.

Line break in the dialog box

The CR string (Carriage Return) can be used to force a break to the next line. For example:
InfoWithTimeout(500, "The form XXX was modified." + CR + "This form will be saved.")
is equivalent to:
InfoWithTimeout(500, "The form XXX was modified.", "This form will be saved.")

Special cases

  • Timers (TimerSys) are not stopped when this function is called.
  • Windows events are not stopped when this function is called.
  • DelayBeforeClosing limits the message display time. The dialog box is automatically closed. For the question or confirmation dialog boxes, the expected answer corresponds to the default button.
  • The caption of buttons is displayed in the language used by Windows on the current computer.
Component : wd240obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
consulta
InfoWithTimeout((1000),"Aguarde.... Consultando Sefaz...")

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/06/aula-118-windev-dicas-034.html

https://www.youtube.com/watch?v=FcBji3Yr8Jc



De matos
24 Jun. 2017