[Top] [Prev] [Next] [Index]
Page 19 out of 116 total pages , Page 2 out of 12 pages in this chapter

Overview of the VkApp Class

The VkApp class, derived from the VkComponent class, provides facilities required by all ViewKit ObjectPak applications. In all of your ViewKit ObjectPak applications you must create a single instance of VkApp or a class derived from VkApp.

Initialization and event-
handling

The primary responsibility of VkApp is to handle the initialization and event-handling operations common to all Xt-based applications. When you write a ViewKit ObjectPak application, instead of calling Xt functions such as XtAppInitialize(3) and XtAppMainLoop(3), you simply instantiate and use a VkApp object.

Support for application-
level tasks

The VkApp class also provides support for other application-level tasks. For example, VkApp provides functions for quitting your application; showing, hiding, iconifying, and opening all of the application's windows; handling application busy states; maintaining product version information; and setting the application's cursor shape.

Information storage

The VkApp class also stores some essential information that can be accessed throughout an application. This information includes:

This information is maintained in the private portion of the class and is available through public access functions.



[Top] [Prev] [Next] [Index]
Page 19 out of 116 total pages , Page 2 out of 12 pages in this chapter

info@ics.com
Copyright © 1998, Integrated Computer Solutions, Inc. All rights reserved.