Jump to content

OS/2 Work Place Shell Sample Program - Address Book

From EDM2
Revision as of 03:45, 2 February 2020 by Ak120 (talk | contribs)

Dan Kehn - at SHARE Europe '93

This example implements a simple address book. An address book contains "people" who have names, addresses, phone numbers, etc.

The address book is implemented as a subclass of the WPS folder class, WPFolder. Subclassing WPFolder has the advantage of inheriting standard folder behavior, especially the Icon, Settings, and Details view. The address book adds an additional view, "Indexed View", which is an alphabetically-tabbed view of the persons within the address book.

The person object contained within the address book is implemented as a subclass of WPAbstract. Subclassing WPAbstract has the advantage of inheriting base WPS object behavior like drag/drop, pop-up menu, and the Settings view. The person class adds an additional "Info" page to the Settings view where the user can change an address, phone number, etc.

License

Copyright (C) 1993 IBM Corporation

Links