PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
WaitWindowEnd (Function)
In french: FenAttenteFin
Closes the wait window of application opened by WaitWindowStart.
Example
// Downloads an image from Internet and displays it in an Image control of application

// Display the wait window
WaitWindowStart("Downloading the image...")

// Start the download thread
ThreadExecute("MyThread", threadNormal, procDownloadImage)
INTERNAL PROCEDURE procDownloadImage
// Download the image
IF HTTPRequest("http://www.windev.com/img/visual/pcsoft/logo-pcsoft.png") THEN
bufImage is Buffer = HTTPGetResult()
// Displays the downloaded image in an image control of the window
ExecuteMainThread(procUpdImage)
INTERNAL PROCEDURE procUpdImage
IMG_NoName1 = bufImage
END
// Close the wait window
WaitWindowEnd()
END
END
Syntax
WaitWindowEnd()
Remarks
  • In order for the wait window to be closed, WaitWindowEnd must be called as many times as WaitWindowStart was called.
  • WaitWindowStart and WaitWindowEnd can be called from a secondary thread.
Component : wd240android.jar
Minimum required version
  • Version 23
Comments
Video WaitWindowEnd
https://youtu.be/Iu7dCX2qfqk

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2049-windev-mobile-aula-110.html

// BTN_WAITWINDOWSSTART
WaitWindowStart("Baixando uma Imagen")
ThreadExecute("MinhaThread",threadNormal,procedure_baixa_imagen)
INTERNAL PROCEDURE procedure_baixa_imagen()
IF HTTPRequest("http://www.matosinformatica.com.br/Arquivos/amarildo.png") THEN
bufFer_imagen is Buffer=HTTPGetResult()
ExecuteMainThread(procedureBxIm)
INTERNAL PROCEDURE procedureBxIm()

IMG_IMAGEN= bufFer_imagen

END

WaitWindowEnd()

END
END
amarildo
Mar. 20 2019