Style Classes

 CGXStyle The CGXStyle class contains all information for formatting cells. A style contains several attributes such as the text color, the horizontal alignment, the vertical alignment, borders, the control type, the readonly flag, the base style and the font containing several font attributes such as the bold flag, the size etc. Each attribute that is a member variable of the CGXStyle class has a corresponding include-bit in the CGXStyle class. Style objects can be composed.
 CGXStylesMap The CGXStylesMap class maintains a map of base styles such as the Standard-style, the Column Header-style and the Row Header-style which define the default styles. It also maintains a map of control names and user-attribute names to be used in the grid.
 CGXFont The CGXFont class encapsulates a LOGFONT structure and contains include-bits for each attribute of the font such as bold, size and italic. A CGXFont can be written to the application profile and loaded from it. Serialization is also supported. Font objects can be composed.
 CGXBrush The CGXBrush class is a wrapper for the LOGBRUSH structure. CGXBrush can be written to the application profile and loaded from it. Serialization is also supported.
 CGXPen The CGXPen class is a wrapper for the LOGPEN structure. CGXPen can be written to the application profile and loaded from it. Serialization is also supported.
 CGXStylesDialog The CGXStylesDialog is a predefined dialog class for changing the grid-wide base styles maintained in the CGXStylesMap.
 CGXStyleSheet The CGXStyleSheet is a predefined dialog class for changing the grid-wide base styles maintained in the CGXStylesMap.
 CGXAbstractUserAttribute By deriving from CGXAbstractUserAttribute you can store binary data into any CGXStyle object. Using a CGXAbstractUserAttribute will be much more convinient for you than using SetItemDataPtr because you don't have to worry about deleting the objects any more.
 CGXUserAttribute CGXUserAttribute provides support for number and string user attributes in the CGXStyle class. CGXStyle::SetUserAttribute instantiates this default CGXUserAttribute class for strings and numbers automatically which makes Objective Grid 6.0 fully source code compatible with the previous Objective Grid versions.