RadRibbonBar has a gap between title bar and commandbar

8 posts, 0 answers
  1. Dean Marriott
    Dean Marriott avatar
    17 posts
    Member since:
    May 2007

    Posted 22 Nov 2012 Link to this post

    Hi guys,

    I upgraded my project to Q3-2012 today and now there is a small gap between the title bar and command bar in my RadRibbonForm.
    I even create a blank project and just add a RadRibbonBarForm in to make sure my code doesnt change the way it shows.
    Also I notice all the buttons in QuickAccessToolBar have border as well. These border will disappear when I move the mouse over.
    Is there any way I can get rid of the gap?

    Dean
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 23 Nov 2012 Link to this post

    Hi Dean,

    You can find the answer to your question in the support ticket that you have opened about the same case. 

    In case our community is interested, here is our answer:
    When using Visual Studio 2012 RadRibbonForm appears with incorrect layout, e.g. the system borders are thinner that they are supposed to be and the caption element is misplaced, so that a black line appears below the title. This is a known issue that we are currently working on it. I am exposing the item publicly to our Public Issue Tracker under ID 13556. To vote for it and subscribe for its status updates follow this link: http://www.telerik.com/support/pits.aspx#/public/winforms/13556. Please excuse us for the caused inconvenience. We will do our best to address the issue in a future release.

    Currently, you can use the following snippet to move the caption element, so that the black line disappears:

    this.radRibbonBar1.RibbonBarElement.RibbonCaption.Margin = new Padding(0, 0, 0, 4);

    A bit off topic, I would kindly ask you to use just one support channel to contact us. Posting the same questions twice or more may slow down our response time because we will need to review and address two or more tickets instead of one. Moreover threads are handled according to license and time of posting, so if it is an urgent issue, we suggest that you use a support ticket, which would be handled before a forum thread.

    Regards,
    Nikolay
    the Telerik team
    Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. y2kdis
    y2kdis avatar
    9 posts
    Member since:
    Nov 2012

    Posted 07 Jan 2013 Link to this post

    I set the form's AllowAero to false (which is true by default) and it seems to have resolved the issue on my end.
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 08 Jan 2013 Link to this post

    Hello Sidky,

    Yes, disabling the Aero should work as well.

    Here is some additional information:
    A deeper research revealed that the roots of the issue lie in the SystemInformation class. In debug mode, the class returns wrong values for the FormBorderStyle property. Note that the issue is not present in release mode. You will be able to avoid the issue while debugging through disabling the Visual Studio hosting process for the project.

    More information about the issue could be found here: http://connect.microsoft.com/VisualStudio/feedback/details/759413/winform-dialogs-displayed-differently-by-vshost-exe-and-exe-using-vs-2012-when-formborderstyle-set-in-form-codebehind

    I hope you find this information useful. Let me know if you encounter any further issues. I will do my best to assist you.

    Regards,
    Stefan
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  6. Mohsen
    Mohsen avatar
    13 posts
    Member since:
    Jan 2013

    Posted 04 Feb 2013 Link to this post

    Hi there,
    I use telerik 2012 Q3 SP1,When i try to use RadRibbonBar control on RadForm an empty space appear between RadRibbonBar and RadForm Title bar,what is this gap and how can I remove this unused space?
    I think I must Hidden ContextualTabGroups Visiblity,but there isn't any property like this in RadRibbonBarControl.
    I want view the RadRibbonBar alone.Is there any other way?
    radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Visibility =
                    ElementVisibility.Hidden;
     
    radRibbonBar1.RibbonBarElement.QuickAccessToolBar.Visibility =
                    ElementVisibility.Hidden;

    Regards,
    Mohsen.
  7. Mohsen
    Mohsen avatar
    13 posts
    Member since:
    Jan 2013

    Posted 07 Feb 2013 Link to this post

    Everyone?
  8. Anton
    Admin
    Anton avatar
    167 posts

    Posted 07 Feb 2013 Link to this post

    Hi Mohsen,

    To hide the described empty space you should access the StripViewItemContainer element that resides in RadRibbonBar. Then you should set its Visibility property to Collapsed. Consider the sample below:

    this.radRibbonBar1.RibbonBarElement.TabStripElement.ItemContainer.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    I hope this helps.

    Regards,
    Anton
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  9. Mohsen
    Mohsen avatar
    13 posts
    Member since:
    Jan 2013

    Posted 08 Feb 2013 Link to this post

    Thank you Anton.
Back to Top
UI for WinForms is Visual Studio 2017 Ready