wxApp
generated from ../src/wxjs/main.cppwxApp 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 ![]() |
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

© 2002 - 2007 Franky Braem.