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

RibbonBar MDI Layout

5 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 Jan 2008, 03:53 AM
Hi,

I've been looking at the RadControls for WinForms Examples app and I noticed in the RadRibbonBar section you have an example of a MDI Layout. The picture shows the app having rounded corners with a different color border. However, when I click on the button, Launch Example, I do not get this layout. I've been trying to replicate it but I've run into a couple of problems. 1) If I change the border size nothing happens. 2) I add a padding - which gives me a border- but I cannot change the color of it.

Any help would be greatly appreciated.

Michael

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Jan 2008, 04:26 PM
Hi Michael.

Thank you for writing.

The border that you see in the example's screenshot is actually a design element. It is not a part of the product itself, rather it is a frame which beautifies the screenshot. We can send you the Photoshop file if it will help you.

As for the borders and paddings, you can change the border size by changing follow properties:

            this.BorderWidth = 3;
            this.BorderColor = Color.Red;


Please refer to the attached project.

Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michael
Top achievements
Rank 1
answered on 16 Jan 2008, 04:48 PM
Hi,

Thank you for the example but there is still a problem. When I change it to a mdi container, the border stays but it loses its color to a dark gray.

Michael
0
Peter
Telerik team
answered on 17 Jan 2008, 08:21 AM
Hi Michael,

Thank you for getting back to us.

We are aware of this issue  - it comes from the form's MDI control. We are still researching how to address it.

For the time being, please use the following workaround - override the form's OnPaint method and call there PaintFrame.

protected override void OnPaint(PaintEventArgs e)
{
        base.PaintFrame(e.Graphics);
}

Please refer to the attached project.

Sincerely yours,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Michael
Top achievements
Rank 1
answered on 17 Jan 2008, 09:42 PM
Thank you for posting this example; it works perfectly.

However, I now have a new problem. All of the forms that will spawn within this mdi form are inheriting from ShapedForm. I use the RadTitleBar as of course, the titlebar. When I expand the spawned child, I get two sets of [min, max, close] controls. One inside the RadRibbonBar and another from when the form expanded but whose titlebar did not disappear. I would post or send a screenshot but I do not see that option available.

Any and all help would be greatly appreciated.

Thanks again,
Michael
0
Nikolay
Telerik team
answered on 18 Jan 2008, 02:34 PM
Hi Michael,

We are aware of this issue and it will be addressed in one of our next releases. For the time being I can provide with you a workaround, which is demonstrated in the sample project attached to this message.

If we could be of your further assistance, do not hesitate to contact us.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Peter
Telerik team
Michael
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or