GlobalDownload Module v1.0 - DMS - February 2003 - by Bob Le Gob **************************************************************** All functions have been documented in the code, and the module is based on Scol Tutorial v3.0. Editor part *********** - The Editor uses the "dms/lib/_mcolormap.pkg" PKG file to handle the choice of colors (cf .dmc file of the module). - You can check the SaveSupplementalData() function to see how the module parameters are stored and cbLoad() to see how they are retrieved. Server part *********** - The server part is very basic, handling the life of the clients as well as the sending to them of the Editor parameters for the zone. Client part *********** - The code in this part is simple too. Two specific variables are used to check the current activity: iDisplay which checks how the zone background should look like (bmp or color), and iStatus which checks the overall download activity. - You may notice that I'm painting on an intermediary bitmap which is then blitted in the zone window instead of directly painting on the zone window. This is done to avoid flicking when refreshing the zone content. - You may notice too that I'm keeping track of what is being downloaded in bytes and kbytes. The first one may seem sufficient but when using bytes count to perform the display, the values obtained while calculating overrun the possibilities of the language and the progress bar is no more displayed. Using kbytes solves (or at least dimishes seriously the risk for) this problem. (Tests have been performed with around 9MB being concurrently downloaded - which is already huge for a site). The width of the zone influences this phenomenom too. (But the above test was tested with a zone width of around 1000 pixels without problem). - Problems should be reported to bob.le.gob@wanadoo.fr and to the Scolring. Questions and suggestions too.