Application Writing - WIN

An application program should only create local objects. The application calls win.create_app_frame to create an applicationFrame window, which is the main frame and top object of the application. The application code extends upon the frame object to define to program.

A frame is always the work area size (the desktop not obscured by the task bar). An application can only have one application frame but can define any number of popupFrames. Each popupFrame can also display a popupFrame. Child windows, typically controls, are placed on these frame windows to interact with the user and handle events.

The system runs by routing events to the appropriate application thread and window for action. While the event handlers should be employed to provide delays and keep sync, os.sleep may be used. Lengthy processes should also be broken into sub-processes so event handlers return in a reasonable time.

Topics

Minimum Application
Starter Application
Application with Menu
Single Instance Application
Application with Popup


See also WIN.