Line-by-line Anatomy of Hello.c (Cont.)


if ( cmd == sysAppLaunchCmdNormalLaunch ) {
An application launches when it receives a launch code. Launch Codes are a means of communication between the Palm OS and the application (or between two applications). Each launch code may be accompanied by two types of information: For example, an application typically launches when a user presses one of the buttons on the device or selects an application icon from the application launcher screen. When this happens, the system generates the launch code sysAppLaunchCmdNormalLaunch, which tells the application to perform a full launch and display its user interface.

WinDrawChars( "Hello, world!", 13, 55, 60 );
A window defines a drawing region. This region may be on the display or in a memory buffer. All forms are windows, but not all windows are forms. The Window object is the portion of the Form object that determines how the form's window looks and behaves. A window object contains viewing coordinates of the window and clipping bounds. The function draws the specified characters in the draw window.