DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Sud Dialog use GIF image to put loading animation

Hello, i would like to know if and how can i use GIF images in dialogs to trigger loading progress bars.

If its not possible, is there some pattern to do that by native functions?

0 Kudos
Message 1 of 3
(2,447 Views)

I usually log my progress in the "Call LogFIleWrite()" at the bottom but I also found this post to display a progress bar:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000015AwTSAU&l=en-US 

Unless you are talking about User Dialog Boxes then you can be all creative with it and maybe have 10 little boxes that change color from gray to blue when progress is made or whatever

0 Kudos
Message 2 of 3
(2,417 Views)

i use the logfilewrite as well when debugging, but ppl are running my script from Report or View panel where the logfile is not displayed. I wanted to just simply place a loading animation on small dialog and show/hide it while making some operations.

I solved it by small dialog box where i have 4x2 images (4x blank, 4x coloured) and i made custom action and im calling it from the parent dialog. 

 

Sub Dialog_EventCustomAction(ByRef This, VarParam) 
	If VarParam = "1" Then
		imgFinal1.Visible 	= 1
		img1.Visible		= 0
	End If
......

 

 

The result is animated loading dialog like this:

loadingbar.png

Message 3 of 3
(2,412 Views)