RadRibbon Problem whit Aeroglass

4 posts, 0 answers
  1. Angel
    Angel avatar
    5 posts
    Member since:
    Jul 2012

    Posted 09 Aug 2012 Link to this post

    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
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 14 Aug 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Angel
    Angel avatar
    5 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    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
  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 15 Aug 2012 Link to this post

    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 >>
Back to Top