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

RadRibbonBar has a gap between title bar and commandbar

7 Answers 173 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Dean Marriott
Top achievements
Rank 1
Dean Marriott asked on 22 Nov 2012, 06:48 AM
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

7 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 23 Nov 2012, 03:29 PM
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.
0
y2kdis
Top achievements
Rank 1
answered on 07 Jan 2013, 06:03 PM
I set the form's AllowAero to false (which is true by default) and it seems to have resolved the issue on my end.
0
Stefan
Telerik team
answered on 08 Jan 2013, 11:26 AM
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.
0
Mohsen
Top achievements
Rank 1
answered on 05 Feb 2013, 05:01 AM
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.
0
Mohsen
Top achievements
Rank 1
answered on 07 Feb 2013, 07:09 AM
Everyone?
0
Anton
Telerik team
answered on 07 Feb 2013, 04:38 PM
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.
0
Mohsen
Top achievements
Rank 1
answered on 09 Feb 2013, 04:58 AM
Thank you Anton.
Tags
RibbonBar
Asked by
Dean Marriott
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
y2kdis
Top achievements
Rank 1
Stefan
Telerik team
Mohsen
Top achievements
Rank 1
Anton
Telerik team
Share this question
or