Hi,
I subclassed a TcxDBButtonEdit to create a custom component that behaves like a TdxColorEdit. I didn't use the standard TdxColorEdit / TcxColorComboBox because I needed additional buttons and behaviour.
Basically, this component opens a modal window which enabled the user to select colours. The selected color is both applied as the background of the edit, and its integer value as the editValue of the control (which is stored in the dataset).
Though, when the user selects a color clNone or clBlack, or any color with a value higher than 16777215 or lower than -16777215 will cause a painting problem. Seems that the border of the control has a little animated "glow" effect when the mouse hovers on it / out of it, that causes a glitch on the control.
Hello,
I am not sure that I understand the problem. Would you please provide us with a couple of screenshots demonstrating the actual behavior and the expected result?
Here are some screenshots. When the mouse enters the control, a glow effect is activated, which lasts a second. During that time, the area where the border is being repainted does not take into account the background color of the control. After the glow effect finishes, it comes back to normal. This occurs only when the background is black, or other "invalid" color values (as specified in the original post). What is also weird, is that this effect also occurs when themes are applied via TcxSkinController, where no border glow effects are applied. Seems the glow effect is still triggered.
Thank you for your clarification. I have reproduced this behavior with TdxSkinController and forwarded this ticket to our developers for research.
It happens also with no style (native)