Code Monkey home page Code Monkey logo

wingap's Introduction

WinGap

Build HTML5 DESKTOP apps for windows

Form Functions

  
  // Sets a bar (usually at the top of the form) that the user can use to drag the form around the screen.
  var x = 1;
  var y = 1;
  var width = 300;
  var height = 20;
  var backgroundColor = 'ffffff';
  var transparencyKey = '000000';
  form.setDragBar(x, y, width, height, backgroundColor, backgroundColor, transparencyKey);
  
  // With a dragbar in place we can begin to setup the other form settings.
  var width = 800;
  var height = 600;
  var title = 'Form 1';
  var borderType = 'FixedSingle';
  var transparent = true;
  var transparencyKey = '000000';
  form.setup(width, height, title, borderType, transparent, transparencykey);
  
  // Minimises the form
  form.minimize();
  
  // Maximise the form
  form.maximise();
  
  // Resize the current window
  form.resize(width, height);
  
  // Bring the form to the front.
  form.focus();
  
  // Alert the user in the task bar
  form.flash();
  

WinGap Functions

  // Had to be done.
  wingap.helloWorld();
  
  // Quits the application
  wingap.quit();
  
  // Opens an application or url.
  wingap.open(address [, args]);
  
  // Enable key listening
  wingap.keyListener();
  
  // The current active key(s) variable to watch.
  wingap.activeKeys;
  
  // Opens a select file dialog and returns the file path.
  wingap.openfile();
  
  // Opens a select files dialog and returns the file paths.
  wingap.openfiles();
  
  // Read a file and return the content.
  wingap.readfile(path);
  
  // Write to a file.
  wingap.writefile(path,string);
  
  // Create a file.
  wingap.createfile(path);
  
  // Delete a file.
  wingap.deletefile(path);
  
  // Read a url and return the result.
  wingap.readurl(address);
  

wingap's People

Contributors

krazyjakee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.