Ticket #15597 (confirmed defect)
Synchronize colour names between wxPropertyGrid and wxColourDatabase
|Reported by:||antont||Owned by:|
When the value of a wxColourProperty is used to initialize a wxColour, some of the colour names are not recognized.
The colour names in gs_cp_es_normcolour_labels (advprops.cpp) are not compatible with the names that are used to initialize a wxColour, in wxColourDatabase::Initialize, e.g.
"Lime" vs "GREEN"
"Fuchsia" vs "MAGENTA"
"Aqua" vs "CYAN"
"Maroon" (128,0,0) vs "MAROON" (142,35,107)
Run propgrid sample, go to a wxColourProperty (not wxSystemColourProperty) - e.g. Colour under FontDataProperty, click [...] button, enter (0,255,0): string value is set to "Lime". That string is not recognized when you try to use it to initialize a wxColour. Enter "red" in the edit box: colour is changed to red. Enter "lime" in the edit box: colour is changed to lime, but an error message appears in the Log Message window:
wxColour::Set - couldn't set to colour string 'lime'