Thank you Tamar,
I'm afraid, I will have to do it the way you say. ;-()
Gerhard
>>Hello Dragan,
>>
>>I did as you suggested and found what you said. The buttons inhereted from the system settings. That is the reason for the difference of colors.
>>
>>Now the question is: Can I prevent this?
>
>You can set colors explicitly, but it's a bad idea. Users choose their system colors to ensure they can see things properly. Overriding their choices can make things unreadable for some users who have color blindness or other visual issues.
>
>Design your application so that it works no matter what colors the users choose at the Windows level.
>
>Tamar
Gerhard Schmidbauer
URANUS Software GmbH