Navigation: Ultimate Suite for PowerBuilder Help > Loading Circle >

Implementation

Send comments on this topic.

 

Place u_cst_loadingcircle from advguicontrols.pbl\pbd on your window.

Note: The loading circle animates using the main UI thread of the application. There's only one UI thread; if it's busy with another process, the animation for the loading circle will stop. You will need to place long running, UI locking, processes in it's own secondary thread. This will insure that the UI thread doesn't lock, preventing the loading circle from spinning.
 

Call the available functions to change the controls behaviour. There is no special code needed to setup the control.

//Set the style of the loading circle
 uo_1.of_SetStyle(uo_1.IE)
uo_1.of_SetStyle(uo_1.MacOSX)
uo_1.of_SetStyle(uo_1.Firefox)
uo_1.of_SetStyle(uo_1.Custom)

//Change the color of the loading circle
uo_1.of_SetColor(ll_color)

//Starts and Stops the animation
uo_1.of_Start()
uo_1.of_Stop()


Copyright © 2021 Werysoft Inc.