in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Ribbon Form Black Visual Style - can't see text

Last post 07-01-2008 2:32 AM by domsinclair. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-30-2008 2:24 PM

    Ribbon Form Black Visual Style - can't see text

    Is there any way to change the default background color for the Black visual style on a Ribbon Form? Or, is there a way to programmatically change the control text from black to white so it can be read in this mode? The reason I ask, is that when users select the Black color theme, they can no longer read the text in labels, radio buttons, check boxes, etc. I do not want to have to go through each and every control and change the text color if possible. Without this ability, the black background seems to make this color theme unusable.

    I am using Ribbon version 2.0.20073.72.

     Thanks!

  • 06-30-2008 5:37 PM In reply to

    Re: Ribbon Form Black Visual Style - can't see text

    I have attached a screen shot of a quick form I threw together the illustrate the issue. The C1 Label kind of fixes it for lables (although I'd prefere a transparent background on labels) but I still do not know what to do for check boxes, radio buttons and other objects.

    Thanks!

  • 06-30-2008 7:17 PM In reply to

    Re: Ribbon Form Black Visual Style - can't see text

    Hi,

    A possible way out:

    You should assign the VisualStyleHolder property instead of VisualStyle, such as

    VisualStyleHolder = VisualStyle.Office2007Black

    When this undocumented property is assigned the visual style changes
    but the form background color is preserved.

    As an alternative solution, you may use the C1InputPanel instead of
    individual input controls. Here is the link to the latest build:

    http://download3.componentone.com/pub/Net/c1ribbon/misc/C1InputPanel.2_2.0.20082.29.zip

    Regards,

    -Andrey
  • 07-01-2008 2:32 AM In reply to

    Re: Ribbon Form Black Visual Style - can't see text

    I've found now that visual styles seem to work fairly well across all C1 components, with a couple of noteable exceptions, namely the background colour of the flex and true db grids.  A way to sort those out would be great, but probably not easy.

    More annoying though, and in fairness this is not a c1 problem, are group boxes, the problem being illustrated perfectly in the picture attached to the second post in this thread.  If any one knows how to programatically alter the text label fore color of the group box as visual styles are selected (well specifically as the Black visual style is selected) I would be most grateful for their suggestions.

     Dom

Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.