BCGSuite for MFC
CBCGPCircularGaugeColors

Detailed Description

The CBCGPCircularGaugeColors class manages circular gauge color themes.

An object of this type is embedded into CBCGPCircularGaugeImpl object and should be passed to CBCGPCircularGaugeImpl::SetColors to define a new color scheme.

For example, the following method sets up a small sub-gauge:

Copy
void CCarDashBoardView::SetupSmallGauge(CBCGPCircularGaugeImpl* pGauge, CBCGPCircularGaugeImpl* pParent)
{
pParent->AddSubGauge(pGauge, CBCGPGaugeImpl::BCGP_SUB_GAUGE_BOTTOM, CSize(120, 120), CBCGPPoint(0, 35));
// Don't draw frame and don't fill internal area for the small gauges
// Create a temporary colors object based on BLACK theme and customize it later
// Modify necessary colors:
colors.m_brFill.SetColor(CBCGPColor());
colors.m_brFrameOutline.SetColor(CBCGPColor());
// Sets the custom colors based on the black scheme and other gauge parameters:
pGauge->SetColors(colors);
pGauge->SetCapSize(5);
pGauge->SetFrameSize(1);
pGauge->SetTicksAreaAngles(145, 35);
pGauge->SetTickMarkSize(10, TRUE); pGauge->SetTickMarkSize(3, FALSE);
pGauge->ModifyPointer(0, pointer);
}

Public Types

enum  BCGP_CIRCULAR_GAUGE_COLOR_THEME
 

Public Member Functions

 CBCGPCircularGaugeColorsConstructor.
 
 SetThemeInitializes the object with theme colors.
 

Public Attributes

 m_brCapFillGauge cap fill brush.
 
 m_brCapOutlineGauge cap outline brush.
 
 m_brFillGauge fill brush.
 
 m_brFrameFillFrame background brush
 
 m_brFrameOutlineFrame outline brush
 
 m_brPointerFillPointer background brush
 
 m_brPointerOutlinePointer outline brush
 
 m_brScaleFillScale area background brush
 
 m_brScaleOutlineScale area outline brush
 
 m_brTextText labels brush.
 
 m_brTickMarkFillTick mark fill brush.
 
 m_brTickMarkOutlineTick mark outline brush.