BCGControlBar Pro for MFC
CBCGPGridColorItem

Detailed Description

The CBCGPGridColorItem is used in conjunction with the Grid control. It implements the functionality of a grid item that can display a color with its RGB value. The new color can be selected using a drop-down color picker.

See also
CBCGPGridCtrl, CBCGPGridItem
+ Inheritance diagram for CBCGPGridColorItem:

Public Member Functions

 EnableAutomaticButtonShows or hides the automatic button for the color picker.
 
 EnableOtherButtonShows or hides the "other" button for the drop-down color picker.
 
 GetColorReturns the color value of the color grid item.
 
 OnDrawPaletteColorBoxCalled by the framework when the palette color box should be drawn.
 
 SetColorSets the color value to the grid item.
 
 SetColorsAllows to specify a custom colors set to be displayed on the color bar.
 
 SetColumnsNumberDefines the number of columns for the drop-down color-picker palette.
 
 SetWebColorsAllows to specify a standard Web colors to be displayed on the color bar.
 
- Public Member Functions inherited from CBCGPGridItem
 ChangeTypeCalled by the framework when a grid control needs to change type of a grid item.
 
 CreateInPlaceEditCalled to create in-place edit control.
 
 EmptyValueMakes a grid item empty.
 
 ExportToHTMLCalled by the framework when the grid control is exported to HTML.
 
 GetAlignReturns item alignment.
 
 GetBackgroundColorReturns background color of the grid item.
 
 GetButtonRectReturn a grid cell button bounds in the client coordinates. If cell don't have button, the return is empty
 
 GetGridItemIDReturns a grid item identifier.
 
 GetImageReturns the index of the grid item image.
 
 GetLabelReturns item label.
 
 GetMergedCellsReturns information about merged cells.
 
 GetMergedMainItemReturns a pointer to main item.
 
 GetMergedRangeRetrieves the range of merged items.
 
 GetMergedRectReturns a bounding rectangle around merged items.
 
 GetParentRowReturns a pointer to the parent row.
 
 GetRectReturn a grid cell bounds in the client coordinates.
 
 GetTextColorReturns custom text color of grid item.
 
 GetValueReturns the item value.
 
 IsEmptyTells whether a grid item is empty.
 
 IsHotTrackEnabledTells whether Grid Cell mouse tracking is enabled.
 
 IsMultilineTells whether a grid item displays multiline text.
 
 IsReadOnlywhether grid cell is a read only.
 
 MergeMerge this item with other items in the specified range.
 
 OnBeginInplaceEditCalled by the framework before creation of in-place edit.
 
 OnDblClickCalled by the framework when the user double clicks the item.
 
 OnDrawBordersCalled to draw borders around a grid item.
 
 OnDrawButtonCalled by the framework when it needs to draw the item's button.
 
 OnEndEditCalled by the framework when the item's value has been edited.
 
 OnEndInplaceEditCalled by the framework after in-place edit is closed
 
 OnFillBackgroundCalled to fill background of grid item.
 
 OnMouseLeaveCalled by the framewok when mouse cursor leaves the Grid Cell bounds.
 
 OnMouseMoveCalled by the framewok when mouse cursor is moved inside the Grid Cell bounds.
 
 RedrawRedraws the grid cell.
 
 SerializeSerialized a grid item data to/from archive.
 
 SetBackgroundColorSets custom background color to the grid item.
 
 SetComboFontSets font of in-place combobox.
 
 SetImageAssigns an image to the grid item.
 
 SetInPlaceEditFontCalled by the framework to set the font of the in-place editor of the grid item.
 
 SetModifiedFlagSets "modified" flag to the item.
 
 SetNotificationBadgeSets grid item notification badge.
 
 SetReadOnlySpecifies whether grid cell is a read only.
 
 SetTextColorSets new custom text color to grid item.
 
 SetValueSets the new grid item value.
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPGridItem
 NewInPlaceEditCalled by the Grid to create a new in-place edit control.
 
 OnAddComboBoxItemCalled by the Grid to add a combo box item.