Custom colours (windows default).
Posted: Tue Apr 07, 2009 9:22 am
Hello,
I would like to be able to define the custom colours as listed in the standard windows colour picker dialog.
In windows it is fairly easily to set these
COLORREF* ccolor = GetSavedCustomColors();
for (int i=0; i < 16; i++)
{
GetRValue(ccolor);
GetGValue(ccolor);
GetBValue(ccolor);
}
Is there any way to set these in TChart? On loading my app, I read previously stored colours from the registry and apply them, but the TChart colour picker has 16 black entries instead of the default windows ones.
Many thanks,
Tony.
I would like to be able to define the custom colours as listed in the standard windows colour picker dialog.
In windows it is fairly easily to set these
COLORREF* ccolor = GetSavedCustomColors();
for (int i=0; i < 16; i++)
{
GetRValue(ccolor);
GetGValue(ccolor);
GetBValue(ccolor);
}
Is there any way to set these in TChart? On loading my app, I read previously stored colours from the registry and apply them, but the TChart colour picker has 16 black entries instead of the default windows ones.
Many thanks,
Tony.