BCGControlBar Pro for MFC
CBCGPGridSparklineItem

Detailed Description

The CBCGPGridSparklineItem class implements Grid Spark lines item.

Using this class you can easily add charts to CBCGPGridCtrl window. The main advantages of this feature are:

  • Different chart types (line, area, column, pie and bubble)
  • Ability to combine different chart types within the single grid cell
  • Chart color scheme is created automatically from the grid colors
  • Custom data markers
See also
CBCGPGridItem
+ Inheritance diagram for CBCGPGridSparklineItem:

Public Types

enum  SparklineType
 

Public Member Functions

 CBCGPGridSparklineItemConstructor.
 
 CBCGPGridSparklineItemConstructor.
 
 CBCGPGridSparklineItemConstructor.
 
 AddDataAdds a new data to existing park lines Grid item.
 
 AddDataAdds a new data to existing park lines Grid item.
 
 GetChartReturns a pointer to underlined chart object.
 
 GetTypeReturns the spark lines type.
 
 RemoveDataRemoves all data from the specified chart series; nSeries is (-1) all chart data will be removed.
 
 SetTypeModifies a spark lines type.
 
 ShowDataPointMarkerShows the data point marker.
 
 UpdateDataPointUpdates an existing chart data point.
 
- Public Member Functions inherited from CBCGPGridItem
 AddOptionAdds a new option to an item.
 
 AdjustInPlaceEditRectSets bounding rectangles of in-place editor and spin control.
 
 ChangeTypeCalled by the framework when a grid control needs to change type of a grid item.
 
 ClearContentCalled by the framework when a grid control is requested to clear content of a grid item.
 
 CreateInPlaceEditCalled to create in-place edit control.
 
 EmptyValueMakes a grid item empty.
 
 EnableMarkupSpecifies whether the markup is enabled for this grid item.
 
 ExportTextCalled by the framework when the grid control is exported to the text.
 
 ExportToHTMLCalled by the framework when the grid control is exported to HTML.
 
 FindOptionSearches for the option by name.
 
 FindOptionByDataSearches for the option by data.
 
 FormatItemCalled by the framework to format the item.
 
 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.
 
 GetHorzAlignReturns grid item horizontal alignment.
 
 GetImageReturns the index of the grid item image.
 
 GetLabelReturns item label.
 
 GetLinkNameObtains the grid item link name.
 
 GetLinksCountReturns the number of the grid item links.
 
 GetLinkURLObtains the grid item link URL.
 
 GetMergedCellsReturns information about merged cells.
 
 GetMergedMainItemReturns a pointer to main item.
 
 GetMergedRangeRetrieves the range of merged items.
 
 GetMergedRectReturns a bounding rectangle around merged items.
 
 GetOptionReturns an option located at the specified index.
 
 GetOptionCountReturns the number of options that belong to an item.
 
 GetOptionDataReturns a user-defined data associated with option located at the specified index.
 
 GetParentRowReturns a pointer to the parent row.
 
 GetRectReturn a grid cell bounds in the client coordinates.
 
 GetSelectedImageReturns the index of the selected grid item image.
 
 GetSelectedOptionReturns the selected option zero-based index or -1 if no option is selected.
 
 GetTextColorReturns custom text color of grid item.
 
 GetValueReturns the item value.
 
 GetVertAlignReturns grid item vertical alignment.
 
 IsEmptyTells whether a grid item is empty.
 
 IsHotTrackEnabledTells whether Grid Cell mouse tracking is enabled.
 
 IsMarkupEnabledTells whether the markup is enabled for this grid item.
 
 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.
 
 OnClickButtonCalled by the framework when the user clicks the button associated with the item.
 
 OnClickCommandIconCalled by the framework when the user clicks the command icon.
 
 OnClickLinkCalled by the framework when a grid item link has been clicked.
 
 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.
 
 ReadFromArchiveReads a grid item data from archive.
 
 RedrawRedraws the grid cell.
 
 RemoveAllOptionsRemoves all options from an item.
 
 SerializeSerialized a grid item data to/from archive.
 
 SetBackgroundColorSets custom background color to the grid item.
 
 SetComboFontSets font of in-place combobox.
 
 SetDataBarAdds a data bar to the grid item.
 
 SetDataColorScaleAdds a color scale to the grid item.
 
 SetDataIconAdds an icon (from the icon set) to the grid item.
 
 SetHorzAlignSpecifies grid item horizontal alignment.
 
 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.
 
 SetSelectedImageAssigns an image to the selected grid item.
 
 SetTextColorSets new custom text color to grid item.
 
 SetValueSets the new grid item value.
 
 SetVertAlignSpecifies grid item vertical alignment.
 
 WriteToArchiveWrites a grid item data to archive.
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPGridItem
 GetCommandIconsCalled by the framework to obtain a cell commands.
 
 IsOptionPrefixOverride this method if you wish to customize drop-down item selection by keyboard.
 
 IsTextOverflowingAllowedTells whether a text overflowing allowed for the specific grid cell.
 
 NewInPlaceEditCalled by the Grid to create a new in-place edit control.
 
 OnAddComboBoxItemCalled by the Grid to add a combo box item.