S sconlon Active Member Licensed User Longtime User May 27, 2013 #1 In a code module I have a routine that downloads a file from a website. This routine is called from a few different activity modules including Main. Within the routine I want to display a progressbar while the download occurs but can't figure out how to do this so that is displays on the separate layouts that the calling modules will have loaded, eg when called from Main layout MainLayout will be loaded but when called from activity1 then layout1 will be loaded. Thanks for any suggestions.
In a code module I have a routine that downloads a file from a website. This routine is called from a few different activity modules including Main. Within the routine I want to display a progressbar while the download occurs but can't figure out how to do this so that is displays on the separate layouts that the calling modules will have loaded, eg when called from Main layout MainLayout will be loaded but when called from activity1 then layout1 will be loaded. Thanks for any suggestions.
Erel B4X founder Staff member Licensed User Longtime User May 27, 2013 #2 You should use a class instead of code module. The best way is to make your class raise a "progress" event. The activity code will then update the ProgressBar. Upvote 0
You should use a class instead of code module. The best way is to make your class raise a "progress" event. The activity code will then update the ProgressBar.
S sconlon Active Member Licensed User Longtime User May 27, 2013 #3 Thanks, I'll give it a try. Upvote 0