[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  oWin:unZip( <nPercent> ) -> < void >
------------------------------------------------------------------------------



 PARAMETER:

  <nPercent)   is the percentage of data that has been unziped by now


 DESCRIPTION:

  This method is called when our window receives a FN_UNZIP command,
  which is automatically done by UnzipFile().
  It then calls the bUnzip actionblock with <nPercent>, which can 
  be used to update an odometer to visualize the unzip process.

  Note that the INFO_ZIP.DLL, which is provided with FiveWin, has to 
  be in Windows search path.


 EXAMPLE:

     +-------------------------------------------------------------+
     | /* simple unzip demo */                                     |
     |                                                             |
     | DEFINE WINDOW oWin FROM 1,1 TO 25, 60                       |
     | oWin:bUnZip := {|nPercent|oMtr:Set(nPercent),SysRefresh()}  |
     |                                                             |
     | REDEFINE METER  oMtr VAR nPercent ID 150 OF oWin TOTAL 100  |
     | REDEFINE BUTTON ID 140 OF oWin ;                            |
     |   ACTION ( oMtr:cText := "Install MyProg" ,;                |
     |            UnZipfile( "MyProg.ex_","MyProg.exe",;           |
     |                        0, oWin:hWnd ;                       |
     |                      ) )                                    |
     | ACTIVATE WINDOW oWin                                        |
     |                                                             |
     +-------------------------------------------------------------+



See Also: UnzipFile Command
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson