BackColor Form

5 posts, 0 answers
  1. Neil
    Neil avatar
    18 posts
    Member since:
    Oct 2006

    Posted 15 Jun 2010 Link to this post

    Hi,

    I am using the RadForm in my project and I've recently upgraded from the Q1 2009 Release to the latest 2010 Release.  

    I was previously using ClientFillPrimitive to set the back colour of the form.    I notice this has been depreciated and replaced with the standard BackColor on a form.


    Since changing this I have noticed that the TabControl on my form now remains grey.  The standard colour for a TabControl.   I'm positive that this was the same colour as the BackColor on the form.

    ** Ignore this ** I think I made a mistake.  I think it's O/s based that affects it.

    The TabControl doesnt contain a property for the BackColor - the change in behavour seems to have been affected by the change in RadForm.

    Any suggestions on how I can get the colours to feed through to the controls like before?


  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 17 Jun 2010 Link to this post

    Hi Neil,

    Thanks for contacting us.

    In general, when you set a BackColor to a container control, it is automatically propagated to all children unless there is an explicit BackColor setting for them. In this case, they do not acquire the BackColor of their parent. The ControlDefault theme of RadForm sets the BackColor of the form to blue. In the normal case, this color should propagate to all children controls.

    Could you please make sure that you do not set BackColor explicitly to your TabControl? If this is not the case, I would like to ask you to prepare a sample WinForms application which reproduces your case and send it to us so that we can see how we can help.

    Thanks for your time.

    Regards,
    Deyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Neil
    Neil avatar
    18 posts
    Member since:
    Oct 2006

    Posted 17 Jun 2010 Link to this post

    Hi,

    Thanks for your reply.   I think the problem I am having is that I have changed the BackColor on the RadForm and it doesn't propergate to the standard tabcontrol in Visual Studio.

    The standard TabControl in Visual Studio doesn't contain a BackColor property.   It's an odd one as most controls have the ability to change the colors.

    Please let me know if you would like a sample app.  

    I basically over-ride the RadForm to White and place a tab control on it.   If you run it on Windows 7 you get a White Tab Control.    If you run it on Windows XP you get a battleship grey tab control on a white form.

    Kind regards
    Neil
  5. Neil
    Neil avatar
    18 posts
    Member since:
    Oct 2006

    Posted 18 Jun 2010 Link to this post

    Hi ya,

    Here is some more information which sort of describes the problem.
    http://social.msdn.microsoft.com/forums/en-US/winforms/thread/7c6ec2ca-9f58-4a01-b309-c4fb6cffc704

    If you are saying the Telerik RadForm should propergate the default colour through this is something I am not seeing.

    Kind regards

    Neil
  6. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 22 Jun 2010 Link to this post

    Hi Neil,

    Obviously, TabControl does not support the BackColor propagation mechanism. Since RadForm does not implement additional functionality to distribute its BackColor to its child controls (it relies on the base Windows Forms BackColor inheritance), we believe this issue is not related to the RadForm control. According to the MSDN thread, you will need to change the TabControl's appearance by yourself if you wish to achieve different appearance.

    I would also like to inform you that as of Q2 2010 Beta we released a new control called RadPageView which has a Strip mode that replaces the currently available RadTabStrip. You can download the Beta release and check out this control. We have also updated our online help so that you can refer to it for further details.

    I hope this helps.

    Kind regards,
    Deyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready