Color property of TADVSpinEdit

The color proprety of the TADVSpinEdit seems to persist if it was set at design time. When changing the color at runtime, the exit event causes the color to revert to its original (designtime) setting. This can be reproduced with ease: Drop two TADVSpinEdits on a form. In the create event of the form, set the second ones color to clRed. At runtime enter the control, which causes it to turn to its FocusColor, then exit the control, it will turn to its designed color (not clRed).

Regard,
Jochem Stähler

If you do a runtime change to the color of TAdvSpinEdit, call AdvSpinEdit.Init after having set the color.

Ah! Thank you. Will keep that in mind.

Regards,
Jochem Stähler