1. A very basic app
An example app which demonstrates the creation of a window with simple contents inside
This API example will show you how to create a very basic app with a resizable window. You may use it as a base for new apps, since it will just be an empty window.
Creating the file
This example will take place at c:/system/boot/apps/example_1.js
.
Defining the goal
The goal of this application is to be used as a base for writing new applications to save time.
The source code
The final result
Important notes
Note that this app uses this.createWindow
instead of StandardWindow
to create windows. This is done because WApplication
will automatically manage the creating of windows and sub-windows when the application is started.
Last updated