BCGSoft > Products > Product feature tour

Product feature tour

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

Built-in color picker

BCGControlBar Library allows to place the Office Style Color picker on a toolbar. The Color picker may have automatic or fill color button, hex display and an extended color selection dialog.

Toolbar's cololr picker:


"Torn-off" color bar


Sample code:
CPalette palColorPicker;
CBCGColorMenuButton colorButton (ID_TEXT_COLOR, _T("Text Color..."), &palColorPicker);

colorButton.EnableAutomaticButton (_T("Automatic"), RGB (0, 0, 0));
colorButton.EnableOtherButton (_T("More Colors..."));
colorButton.EnableDocumentColors (_T("Document's Colors"));
colorButton.SetColumnsNumber (8);
colorButton.EnableTearOff (ID_COLOR_TEAROFF, 5, 2);

m_wndToolBar.ReplaceButton (ID_TEXT_COLOR, colorButton);
Prev  Next