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

Lable Dissapre

2 Answers 79 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Dasash
Top achievements
Rank 1
Dasash asked on 24 Nov 2010, 07:53 AM
HI ,
I am using in my winform app (Version Telerik Q3) in your Defult (Black Office And Windows 7)Theam And Whan i Run The app on Win Xp all lables are dissapre ,
when i Modify the Window Color Scheme To Silver The Lables Are Appering -On WIndow 7 Or Xp The Problome Dont Exist
THX

2 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 24 Nov 2010, 10:05 AM
Hello,

I don't have a Windows XP system to try this on, but my initial thought is that you have the back colour of the control set to one of the system background colours that match your PC. Have a look at the back colour for the label and if it is set to one of the system colours, try changing it to transparent. Are you able to replicate this if you run the code on a different XP machine?

Thanks
Richard
0
Ivan Petrov
Telerik team
answered on 29 Nov 2010, 02:39 PM
Hello Dasash,

Thanks for writing.

RadLabels take their ForeColor value from the ForeColor property of the parent control. Commonly, this is your Form where the ForeColor is ControlText hence the actual color depends on the theme of your Windows.

You can two options in this case:
  • Set the ForeColor of the form to an appropriate value that matches the style of your application. Such a value could be Black or White.
  • Edit the Office2007Black/Windows7 theme using our Visual Style Builder tool. You can follow these steps in order to open, edit and save our predefined themes. When you set the ForeColor of the RadLabelElement or its TextPrimitive to a value of the Color enumeration, the color of your RadLabels will no longer depend on the color of the form.

I hope you find this information useful. If you have additional questions, feel free to contact me.

Regards,
Ivan Petrov
the Telerik team
Get started with RadControls for WinForms with numerous videos and detailed documentation.
Tags
Themes and Visual Style Builder
Asked by
Dasash
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Ivan Petrov
Telerik team
Share this question
or