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

RadRibbon Problem whit Aeroglass

3 Answers 90 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Angel
Top achievements
Rank 1
Angel asked on 10 Aug 2012, 02:14 AM
i'm having problem whit RadRibbon and Aeroglass.
please look the images.

whit ribbonform and winforms

using this code: (Visual Studio 2010 - c#)

public partial class RadRibbonForm1 : Telerik.WinControls.UI.RadRibbonForm
    {
        private VistaApi.Margins marg;
 
 
        public RadRibbonForm1()
        {
            InitializeComponent();
 
            marg = new VistaApi.Margins();
            marg.Top = 0;
            marg.Left = 0; 
            marg.Right = panel1.Width;
            marg.Bottom = panel1.Height;
            VistaApi.DwmExtendFrameIntoClientArea(this.Handle, ref marg);
 
        }
 
        private void RadRibbonForm1_Load(object sender, EventArgs e)
        {
            Color c = Color.FromArgb(255, 221, 220, 220);
            this.TransparencyKey = c;
            panLateral.BackColor = c;
        }
 
 
}


thank

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 14 Aug 2012, 11:25 AM
Hi Angel,

RadRibbonForm uses the DWM API to show an application button in the header area of the form. That is why you cannot call the same API when using RadRibbonForm. Please, could you describe in detail what exactly you want to achieve. We will try to find a better option.

I am looking forward to your reply.
 
Greetings,
Jack
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Angel
Top achievements
Rank 1
answered on 14 Aug 2012, 05:07 PM
well, i have a panel called "PanLateral" and i want only this panel have a glass aeroefect like the pic:  error-glass-radribbon2.jpg

thank
0
Jack
Telerik team
answered on 15 Aug 2012, 01:59 PM
Hi Angel,

In this scenario you can use either RadForm or the default Form. However, you should use the DwmEnableBlurBehindWindow method instead of DwmExtendFrameIntoClientArea. Please consider the following MSDN article.

I hope this helps.

Kind regards,
Jack
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
RibbonBar
Asked by
Angel
Top achievements
Rank 1
Answers by
Jack
Telerik team
Angel
Top achievements
Rank 1
Share this question
or