This is a migrated thread and some comments may be shown as answers.

RadColorDialog with Named Colors

1 Answer 67 Views
ColorDialog
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 02 Dec 2009, 05:52 AM
Trying to use the RadColorDialog with only the web tab showing to select Named colors.  Oddly after the "named" color is selected in the dialog, the SelectedColor is not a named color.  Pick Blue then see what happens.

            radColorDialog1.ColorDialogForm.ShowBasicColors = false
            radColorDialog1.ColorDialogForm.ShowProfessionalColors = false
            radColorDialog1.ColorDialogForm.ShowSystemColors = false
            radColorDialog1.ColorDialogForm.ShowHEXColorValue = false
            radColorDialog1.ColorDialogForm.AllowColorPickFromScreen = false
            radColorDialog1.ShowDialog(); 
 
            var color = radColorDialog1.SelectedColor; 
            var blue = Color.FromName("Blue"); 
            var areSame = color == blue ? "Same Color" : "Different Colors"; 
            var isKnown = color.IsKnownColor ? "Yes named" : "Not named"; 
            MessageBox.Show(string.Format("Color 1: {0} ({4})\nColor 2: {1} ({5})\n{2} : {3}", color, blue, areSame, isKnown, color.ToArgb(), blue.ToArgb())); 
 

Blue != Blue, Same ARGB != Same ARGB, Is not a named color.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 08 Dec 2009, 09:10 AM
Hello Jon Masters,

Thank you for reporting this issue.

I was able to reproduce it. It will be addressed in one of our next releases.

I am updating your Telerik points for you feedback.


Regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ColorDialog
Asked by
Jon
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or