This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:zip [2014/12/17 17:07] octazid [Create] |
built_in:zip [2016/01/22 17:38] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== Create ===== | ===== Create ===== | ||
- | Create a Zip control using the CreateZipUtil function of the app object: | + | Create a ZipUtil |
< | < | ||
Also you can use it in a function like this: | Also you can use it in a function like this: | ||
- | < | + | < |
+ | function unzip(zipfile, | ||
+ | { | ||
var zip = app.CreateZipUtil(); | var zip = app.CreateZipUtil(); | ||
zip.Open(zipfile); | zip.Open(zipfile); | ||
var files = zip.List().split("," | var files = zip.List().split("," | ||
- | files.forEach(function (item) { | + | files.forEach(function (item) |
+ | | ||
zip.Extract(item, | zip.Extract(item, | ||
}); | }); | ||
Line 15: | Line 18: | ||
</ | </ | ||
===== Methods ===== | ===== Methods ===== | ||
- | ^Method ^Description ^ | + | ^ Method |
- | |Zip.AddFile( name,file ) | | | + | | ZipUtil.AddFile( name,file ) | | |
- | |Zip.AddText( name,text ) | | | + | | ZipUtil.AddText( name,text ) | | |
- | |Zip.Close() | | | + | | ZipUtil.Close() |
- | |Zip.Create( file ) | | | + | | ZipUtil.Create( file ) | | |
- | |Zip.CreateDebugKey( file ) | | | + | | ZipUtil.Extract( name,file ) | | |
- | |Zip.CreateKey( file, | + | | ZipUtil.List( path ) | | |
- | |Zip.Destroy() | | | + | | ZipUtil.Open( file ) | | |
- | |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, | + |