BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Not available BCGSuite (MFC)
Not available BCGControlBar (Microsoft .NET)

Office-like Color Selection Dialog Box

This dialog is actually a property sheet with two pages. The first page allows to make a selection from one of the standard colors (from the system palette) using a list of colors in hexagon form, the second page displays a control that allows to select a custom color, using a luminance bar and hex display.

The user selects a particular color, which is then reported back to the application.

Sample code:
CBCGPColorDialog dlg (m_Color /* Initial color */);

if (dlg.DoModal () == IDOK)
{
    m_Color = dlg.GetColor ();
}
Prev  Next