Hello,
I have a Shell command in a “Do Loop” loop, before the loop I declare a ProgressWheel but it remains invisible and inactive during the execution of the command. How to do ? Here is the code:
if ProgressWheelXPR.Visible = false then
ProgressWheelXPR.Visible = true
end
if ProgressWheelXPR.Enabled = false then
ProgressWheelXPR.Enabled = true
end
sh.Execute xpfile.ShellPath
Do
sh.Poll
Loop Until Not sh.IsRunning
If exit_code = 0 Then 'Success
...
your loop chokes the gui, you should do your loop in a thread or simply do NOT do the loop at all. Xojo will raise an event on the Shell class once it get’s data automaticly.