ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
WaitWindowEnd (Function)
In french: FenAttenteFin
Closes the waiting window of the application opened with WaitWindowStart.
Example
// Downloads an image from Internet and displays it in an Image control of application

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

// Start the download thread
ThreadExecute("MyThread", threadNormal, procDownloadImage)

	INTERNAL PROCEDURE procDownloadImage
		// Download the image
		IF HTTPRequest("https://www.windev.com/img/visual/21/logo-pcsoft.png") THEN
			bufImage is Buffer = HTTPGetResult()
			// Display the downloaded image in an Image control of the window
			ExecuteMainThread(procUpdImage)
				INTERNAL PROCEDURE procUpdImage
					IMG_NoName1 = bufImage
				END
			// Close the loading window
			WaitWindowEnd()
		END
	END
Syntax
WaitWindowEnd()
Remarks
  • In order for the loading 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.
Business / UI classification: UI Code
Component: wd300android.jar
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help