Win an Ipad
  Developer   Documents   Application

Application

This article explains how to create enterprise application in Moscrif.

Application

Encapsulates native Window() feature and provides basic application events and controls. It defines application skin and application forms. Main purpose of application class is application forms management. It controls what form is displaying or what application form was previously displayed.

Application form management provides following methods

 

add() Add app. form to storage
push() Add app. form to storage and display it
pop() Display previous form
peek() Display last inserted form

 

 

 

Application skin instance is defined within Application and controls how application elements are displayed.


The most significant application events are in table below:

 

  •     onStart
  •     onQuit
  •     onProcess
  •     onKeyPressed
  •     onPointerDragged

Application Layout operation :

  •     layout - keeps instance of native StackLayout object
  •     suspendLayout
  •     resumeLayout
  •     performLayout

 

Example of application in Moscrif :

include "lib://ui/application.ms" var app = new Application(); app.onStart = function(sender) {
    //before start code goes here
} app.onProcess = function(sender){
    //on application process code goes here
} app.onQuit = function (sender){
    //on qiut code goes here
} app.run();

 Particle System   Application   Application Form 
Write a Comment (0)
Subject
Please complete this mandatory field.
HTML Tags Not Allowed!
Comment
Please complete this mandatory field.