in

C1 Community

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

BackColor of MDI-Child incorrect

Last post 05-14-2008 11:49 AM by domsinclair. 18 replies.
Page 1 of 2 (19 items) 1 2 Next >
Sort Posts: Previous Next
  • 05-07-2008 3:41 AM

    BackColor of MDI-Child incorrect

    Hi,

    since I'm using the latest version of C1Ribbon (2.0.20082.87) the backcolor of MDI-childs is drawn incorrectly. No matter if I set my application to VisualStyle = Black or Silver, background is drawn in Blue.
    The same behaviour occurs with the example RibbonAppVB which I found here in the forum.

    Is there something wrong with the new assembly?

     

    Greetings

    Lars 

  • 05-07-2008 6:34 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Hi Lars,

    Yes, there was an issue in build .87 Please download and try the next
    build instead:

    http://download3.componentone.com/pub/Net/c1ribbon/misc/C1Ribbon.2_2.0.20082.89.zip

    Regards,

    -Andrey
  • 05-08-2008 2:49 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Hello Andrey,

    thanks for your answer. I downloaded build 89 and replaced the old files.

    I tested all the day and I think the above described problem is not really fixed. On some forms the VisualStyle ist set correctly but on others it's completely ignoried. I can't say why.

    Another question is why do I have to set the VisualStyle property for each C1-control which I use on a child form?

    First I set the VisualStyle of the Form. In my opinion other controls must inherit this style - but they don't.
    I created all my forms in blue. If I set to black at runtime, form is drawn black but controls still in blue.
     

    Regards
    Lars
     

  • 05-08-2008 6:54 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Hi Lars,

    > I tested all the day and I think the above described problem is not really fixed.

    Sorry, my fault... It was not fixed. Please try the following build:

    http://download3.componentone.com/pub/Net/c1ribbon/misc/C1Ribbon.2_2.0.20082.91.zip

    > Another question is why do I have to set the VisualStyle property for each
    > C1-control which I use on a child form?

    Please let me know which C1 controls (what versions) don't inherit the form
    style? I have just tried it with C1FlexGrid. It looks like the grid's visual style
    is updated correctly when I change visual style on the ribbon form.

    Thanks.

    -Andrey
  • 05-08-2008 10:21 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Hi Andrey,

    build 91 works much better than 89. :-)

     

    However for my second question I add a little example. Not very nice, but functional to show what I mean.

    -          First start the sample.

    -          Click “Black” to change color of VisualStyle

    -          Click “Call Dialog”

    -          Dialog is shown but Tab is blue, not black like it should

    -          To ensure right color for Tab you must do an explicit style definition like I do in Form-Load-Event. It’s commented for now.

     

    -          Start the application a second time.

    -          Click “Black” to change color of VisualStyle

    -          Now click “Call Child Window”

    -          In the shown form you will see two grids. One copied from my application and modified in settings. The other one is simply drawn on the form – nothing more.

    -          The modified grid has a blue style header, the other is correct. (With the buttons on bottom left you can set the grid-style directly to compare.)

    -          The button on bottom right keeps although color blue and doesn’t inherit the form style.

     

    Control-Versions:

    -          C1Command.2 / 2.0.20081.10402

    -          C1FlexGrid.2 / 2.6.20081.379

    -          C1Input.2 / 2.0.20082.33204

    -          C1Ribbon / 2.0.20082.91


    Regards

    Lars 

  • 05-08-2008 11:15 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Thanks Lars. I will contact the other developers who work on C1Command,
    C1Input, and C1FlexGrid. Hopefully, the problem will be fixed very soon.

    Regards,

    -Andrey
  • 05-08-2008 4:38 PM In reply to

    Re: BackColor of MDI-Child incorrect

    Hi Lars,

    I have explored the issue carefully. Fixed one bug in the C1Button component.
    The fix will be included in build 2.0.20082.33207 and later builds of C1Input.
    Other controls seem to work correctly.

    Also, there are some problems in your sample. See comments below.

    > - First start the sample.
    > - Click 'Black' to change color of VisualStyle
    > - Click 'Call Dialog'
    > - Dialog is shown but Tab is blue, not black like it should

    Open the frmDialog form in the designer and select the C1Tab component
    in the drop-down list above the property grid. Then find the VisualStyle property
    of this component in the property grid. As you can see, the VisualStyle is set
    to 'Office2007Blue'. The value appears in bold. It implies that the value is set
    explicitly for this control, it is not inherited from the container control.
    Right-click the VisualStyle property in the property grid and select 'Reset'
    from the context menu. The value will appear using the standard font.
    Since then, the value will be inherited from the container control, such the
    ribbon form.

    > - Start the application a second time.
    > - Click 'Black' to change color of VisualStyle
    > - Now click 'Call Child Window'
    > - In the shown form you will see two grids. One copied from my application
    > and modified in settings. The other one is simply drawn on the form nothing more.
    > - The modified grid has a blue style header, the other is correct. (With the
    > buttons on bottom left you can set the grid-style directly to compare.)

    To fix the issue you should reset the VisualStyle property on the modified grid.

    > - The button on bottom right keeps although color blue and doesn't inherit the form style.

    You have to install the updated C1Input dll to fix this bug in the C1Button.

    Regards,

    -Andrey
  • 05-09-2008 2:07 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Hello Andrey,

    many thanks for helping me.

    You're right - it was my fault. When I reset the VisualStyle-property everything's okay. Hopefully I didn't waste to much of your time!

    But we found a little problem with C1Button... That's to be of worth, or? ;-)
     

    Sincere regards

    Lars 

  • 05-13-2008 2:39 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Andrey

     

    Perhaps I might revist this topic if I may.  I have an application based on the C! ribbon, using all the latest variants of the c1 controls which utilises both child forms and stand alone forms.  In all cases I seee no evidence of c1 controls inheirting the visual style of the main ribbon form, quite the contrary they all seem to stick rigidly to office blue ireesepective of what the main form is.

     

    If the inheiritance of a visual style is now meant to be automatic I'm clearly missing something.  What does one need to do to ensure that c1 controls inheirit the visual style from the main form.

     Dom

  • 05-13-2008 3:01 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Hi Dom,

    You may need to reset the VisualStyle property on the c1 controls
    to force them to inherit visual style from the parent C1RibbonForm.
    (select 'Reset' from the context menu for the VisualStyle property
    in the VS property grid).

    If this doesn't help, please post here a small sample that shows
    the problem. The style inheritance works well for me now.

    Regards,

    -Andrey
  • 05-13-2008 10:24 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Andrey

    Thanks for your reply.  Now I have just looked at a c1 schedule component that is in the app for example (Version 2.0.20082.62) and there is no reset option on the Visualstyle property tab in the VS property grid.  So I am I missing something obvious??

     Dom

  • 05-13-2008 11:04 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Dom,

    It looks like there is an issue in the C1Schedule control, sorry.

    I will contact the scheduler development team. Hopefully, the problem
    will be fixed very soon. Then, I will let you know.

    Thanks.

    -Andrey
  • 05-13-2008 11:48 AM In reply to

    Re: BackColor of MDI-Child incorrect

    Andrey

     

    I have just been looking at the rest of the c1 controls in my app (specifically for a reset property on the visualstyle section of the property grid)

    Thus far (with no success)

    c1button (v2.0.20082.33204)

    c1flexgrid (v 2.6.20081.379)

    C1truedbgrid (version 2.0.2008.61135

    c1printpreview(version 2.0.2008.411

     

    In fact all controls seem not to have a reset property.

     

    Dom

  • 05-13-2008 12:53 PM In reply to

    Re: BackColor of MDI-Child incorrect

    Dom,

    I did not mean the reset property. This is just an option in the context menu
    for the VisualStyle property. Please take a look at the attached screenshot.

    Regards,

    -Andrey
  • 05-13-2008 2:46 PM In reply to

    Re: BackColor of MDI-Child incorrect

    My apolologies Andrey, I must be half asleep, it didn't occur to me to check the context menu, however now that I have the reset option is greyed out for all of them.

     Any Ideas?

     

    Dom

Page 1 of 2 (19 items) 1 2 Next >
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.