This shows you the differences between two versions of the page.
built_in:zip [2014/12/17 17:07] octazid [Create] |
built_in:zip [2016/01/22 17:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Zip control ====== | + | |
- | ===== Create ===== | + | |
- | Create a Zip control using the CreateZipUtil function of the app object: | + | |
- | < | + | |
- | Also you can use it in a function like this: | + | |
- | < | + | |
- | var zip = app.CreateZipUtil(); | + | |
- | zip.Open(zipfile); | + | |
- | var files = zip.List().split("," | + | |
- | files.forEach(function (item) { | + | |
- | zip.Extract(item, | + | |
- | }); | + | |
- | zip.Close(); | + | |
- | } | + | |
- | </ | + | |
- | ===== Methods ===== | + | |
- | ^Method ^Description ^ | + | |
- | |Zip.AddFile( name,file ) | | | + | |
- | |Zip.AddText( name,text ) | | | + | |
- | |Zip.Close() | | | + | |
- | |Zip.Create( file ) | | | + | |
- | |Zip.CreateDebugKey( file ) | | | + | |
- | |Zip.CreateKey( file, | + | |
- | |Zip.Destroy() | | | + | |
- | |Zip.Extract( name,file ) | | | + | |
- | |Zip.GetAbsHeight() | | | + | |
- | |Zip.GetAbsWidth() | | | + | |
- | |Zip.GetHeight() | | | + | |
- | |Zip.GetPosition() | | | + | |
- | |Zip.GetType() | | | + | |
- | |Zip.GetVisibility() | | | + | |
- | |Zip.GetWidth() | | | + | |
- | |Zip.List( path ) | | | + | |
- | |Zip.Open( file ) | | | + | |
- | |Zip.Release() | | | + | |
- | |Zip.SetBackColor( colorcode ) | | | + | |
- | |Zip.SetBackGradient( p1, | + | |
- | |Zip.SetBackGradientRadial( p1, | + | |
- | |Zip.SetBackground( p1,p2 ) | | | + | |
- | |Zip.SetMargins( left, | + | |
- | |Zip.SetPadding( p1,p2,p3,p4 ) | | | + | |
- | |Zip.SetPosition( p1,p2,p3,p4 ) | | | + | |
- | |Zip.SetScale( x,y ) | | | + | |
- | |Zip.SetSize( p1,p2 ) | | | + | |
- | |Zip.SetVisibility( p1 ) | | | + | |
- | |Zip.Sign( fileIn, | + | |
- | |Zip.UpdateManifest( fileIn, fileOut, packageName, | + |