back to wxjs 

wxApp

generated from ../src/wxjs/main.cpp

wxApp represents the application. The wxJavaScript console application instantiates an object of this type automatically and stores it in the global variable wxTheApp. You can assign a function to the onInit event. This function is called before the main message loop is entered. It's not mandatory to use onInit, because the console application will check if a top-level window is created and shown before entering the main loop. Unlike previous versions of wxJavaScript, where you needed to call mainLoop, the console application will enter the main loop automatically.

Remark: This object is not available in the Apache module mod_wxjs.

Constants

Properties

Name Type Description
appName String Get/Set the application name
argv read only Array Returns the arguments passed to the script
className String Get/Set the classname
topWindow wxWindow Get/Set the top window of your application.
vendorName String Get/Set the vendor name

Events

onInit Called when the application needs to be initialized. Set a function that returns a boolean. When it returns false the application will stop (onExit isn't called!).
onExit This function is executed when the application exits. The function doesn't get any parameters and must return an Integer.


SourceForge.net Logo Support This Project

Table of Contents

Properties

appName
argv
className
topWindow
vendorName

Events

onInit
onExit


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.