User Tools

Site Tools


built_in:zip

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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: +
-<code>var zip = app.CreateZipUtil();</code> +
-Also you can use it in a function like this: +
-<code>function unzip(zipfile, extractpath) { +
-    var zip = app.CreateZipUtil(); +
-    zip.Open(zipfile); +
-    var files = zip.List().split(","); +
-    files.forEach(function (item) { +
-        zip.Extract(item, extractpath+"/"+item); +
-    }); +
-    zip.Close(); +
-+
-</code> +
-===== Methods ===== +
-^Method ^Description ^ +
-|Zip.AddFile( name,file ) | | +
-|Zip.AddText( name,text ) | | +
-|Zip.Close() | | +
-|Zip.Create( file ) | | +
-|Zip.CreateDebugKey( file ) | | +
-|Zip.CreateKey( file,pass,name,org ) | | +
-|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,p2,p3,p4,p5,p6,p7 ) | | +
-|Zip.SetBackGradientRadial( p1,p2,p3,p4,p5,p6,p7 ) | | +
-|Zip.SetBackground( p1,p2 ) | | +
-|Zip.SetMargins( left,top,right,bottom ) | | +
-|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,fileOut,keyStore,pass ) | | +
-|Zip.UpdateManifest( fileIn, fileOut, packageName, appName, permissions, options ) | |+
built_in/zip.txt · Last modified: 2016/01/22 17:38 (external edit)