Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Text ForeColor in Windows XP Classic mode is White
With version 3.0.6 of the SRP Button control, the text on a button is white by default if the theme is 'Window Classic Style' on XP. It seems that this come from the font color of the 'Selected Items' display property in Windows XP - ie, changes to this property are reflected in the button text. The buttons are set with the 'Standard Flat' Style.
Is there a reason why the normal ForeColor defaults to the Selected Items display property? White is an appropriate forecolor when the background of a selected item is dark blue, but it doesn't work so well with button text.
A work-around is to set the ForeColor property of the SRP buttons directly to black in the CREATE event, although this seems a little hard-wired.
Cheers, M@
Is there a reason why the normal ForeColor defaults to the Selected Items display property? White is an appropriate forecolor when the background of a selected item is dark blue, but it doesn't work so well with button text.
A work-around is to set the ForeColor property of the SRP buttons directly to black in the CREATE event, although this seems a little hard-wired.
Cheers, M@
Comments
For others that might stumble upon this thread, note that in Windows 7, the default seems to be battleship gray instead of black. Again, it's a bug and will be fixed soon.
Has the button control been fixed so that I do not have to manually set the color to black for each button?
When I read the Version property of a button, it says "3.0.6 01/11/2013 10:53AM" That date seems old, but I'm not sure.
Thanks,
Adam Chan
User: Adam Chan
Cheers, M@
User: Adam Chan