Stinga BeeGrid Outlook Demo
Table of contents
Overview
Requirements
Outlook Classes
Exchange Rate Class
Special Folders Classes
NorthWind Classes
Outlook-bar
Overview:

BeeGrid Outlook demo shows how you can use the BeeGrid control in a real world application. The sample uses two grid controls to simulate Microsoft« Outlook« application. The first grid duplicates look and feel of the outlook-bar. The second grid displays data. When the user clicks on an icon in the outlook-bar, the sample creates object which implements the IModuleInterface interface. There are four kinds of objects:

  1. Outlook classes - uses the grid in a virtual interface mode to display data from the Microsoft« Outlook« folders.
  2. Exchange Rate class - loads layout and data from the standard Windows resource file. Uses grid in an unbound data mode.
  3. Special Folders class - uses a virtual interface mode to display files and folders from the My Documents and the Favorites folders.
  4. NorthWind class - demonstrates how to bind the BeeGrid control to a database. 

Requirements:

The BeeGrid Outlook demo does not work if you are using free edition of the BeeGrid control. Demo will work with the BeeGrid evaluation demo. To enable Pro Edition evaluation period, please install BeeGrid Pro Edition and leave registration code entries empty.

Outlook objects can be run only if Microsoft« Outlook« (98 or newer) is installed. NorthWind object requires NorthWind database. Please check that the NorthWind.mdb file not read-only.


Outlook Classes

The demo uses Microsoft Outlook object library to display messages and contacts from the standard Outlook folders. All of these classes uses the  grid in a virtual interface data mode. Reading Outlook items is a time-consuming task so the program cashes items to a local variable.

The group is composed of two classes:

  • COutlookMailFolders - handles Inbox, Outbox and Sent Items folders.
  • COutlookContacts - displays contacts from the Contacts folder.

Exchange Rate Class

The CExchangeRate class demonstrates how to load the BeeGrid Layout and data from the standard Windows resource. In addition, this class shows how to use cell tool tips, how to use an unbound column and how to fetch cell styles.


Special Folders Classes

The CSpecialFolders class uses a virtual events mode to display files and folders from the My Documents and the Favorites folders. It demonstrates how to use images from the system image list in the grid's SGValueItem object.


NorthWind Classes

NorthWind classes demonstrate how to bind the BeeGrid control to a database. 

  • CNorthWindCustomers - uses the SGValueItems to implement incremental search.
  • CNorthWindProducts - uses the ValueItemError event to add a new value item to the database. In addition, it demonstrates the use of the IsgGridCustomDraw interface to perform custom drawing.
  • CNorthWindOrders - binds read only recordset. It demonstrates how to create the group heading formula in the AfterGroupChange event.

Outlook-bar

Outlook-bar is created with the BeeGrid control. Each group is simulated with two rows: one row is a group caption and the second row contains group items. 

Following classes are used:

  • CVerticalMenu - implements the IsgGridCustomDraw interface to paint group items.
  • CVerMenus - a collection of the outlook-bar groups.
  • CVerMenu - a single outlook-bar group.
  • CVerMenuItems - a collection of the menu items in one group.
  • CVerMenuItem - the menu item.