02-20-2020 03:29 AM
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?
02-20-2020 09:11 AM
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
02-20-2020 09:52 AM
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: