PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • 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 time-out, 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.
  • To customize this dialog box (as well as all the system dialog boxes of your application), check "Apply the theme of skin template to the system information windows" in the style tab of project description. See Customizing the 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

  • The timers (TimerSys) and the events 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 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.
Components
WINDEVReports and Queries wd230obj.dll
Linux wd230obj.so
Minimum required version
  • 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
Jun. 24 2017