|
|
|
|
// 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("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 wait window WaitWindowEnd() END END
Observaciones - Para cerrar la ventana de espera, se debe llamar a la función WaitWindowEnd el mismo número de veces que se haya llamado a la función /ELTLIEN000038/#.
- Las funciones WaitWindowStart y WaitWindowEnd pueden llamarse desde un hilo secundario.
Clasificación Lógica de negocio / UI: Código UI Componente: wd290android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|