------------------------------------------------------------------------
 RTF Text Cells Sample for iGrid ActiveX
 
 Control Version: 3.0, 5.0
 Environment: Visual Basic 6

 Copyright (c) 10Tec Company. All rights reserved.
------------------------------------------------------------------------

Description
===========
iGrid allows you to display only non-formatted text in its normal cells, but you can overcome this limitation and display RTF text using custom drawing.

Short Code Explanation
======================
In this sample we exploit the native Windows Rich Edit Control to render RTF text in the custom drawn cells in iGrid. All hard Windows API work is encapsulated in the CRTFDrawer class you can easily use from your code.

To draw RTF text in a cell, use a specially created method called DrawText - you call it in the CustomDrawCell event of iGrid for the required cells. The other useful method of the class, MeasureTextHeight, can be used if you wish to calculate the best height of the row to display the specified RTF text.

Change List
===========
** 2014-Aug-27 **
1) The code based on iGrid 3.0 was upgraded for iGrid 5.0.