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

maximised RadRibbonForm

11 Answers 116 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Afraei
Top achievements
Rank 1
Afraei asked on 10 Jun 2012, 05:05 PM
Hello,

I have crated a RadRibbonBar in a RadRibbonForm and changed WindowState property to Maximized but my auto-hide task-bar will not appeared by the mouse. how could I correct it?

Regards

11 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 13 Jun 2012, 01:35 PM
Hello Arfei,

Thank you for contacting us.

This appears to be an issue in RadRibbonForm. I have logged it in our Public Issue Tracking System so you can track it and vote for it. We will address it in a future release. Here is the link to the PITS item.

For the time being, you can try using the following workaround:
public partial class Form1 : RadRibbonForm
{
    public Form1()
    {
        InitializeComponent(); 
    }
    protected override FormControlBehavior InitializeFormBehavior()
    {
        return new MyFormBehavior(this);
    }
    private class MyFormBehavior : RadRibbonFormBehavior
    {
        public MyFormBehavior(IComponentTreeHandler treeHandler)
            : base(treeHandler, true)
        {
 
        }
        public override Padding ClientMargin
        {
            get
            {
                if (!this.CompositionEffectsEnabled
                || this.Form.IsDesignMode)
                {
                    return this.BorderWidth;
                }
                else
                {
                    return new Padding(
                        SystemInformation.FrameBorderSize.Height,
                        0,
                        SystemInformation.FrameBorderSize.Height,
                        SystemInformation.FrameBorderSize.Height + 1);
                }
            }
        }
    }
}

You might notice a thin black line next to the bottom border of the form as a result from this workaround. However, this is the only approach I can suggest by this moment.

Your Telerik points have been updated for bringing this issue to our attention.

Feel free to write back if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Afraei
Top achievements
Rank 1
answered on 13 Jun 2012, 02:39 PM
Hello Ivan,

Thank you so much.

I want to use RadRibbonBar, so which kinds of Telerik form could I use instead of RadRibbonForm without this problem?

For now, could you please give me a sample project that includes your suggested workaround?

I appreciate your kindly help in advance.

Regards
0
Ivan Todorov
Telerik team
answered on 14 Jun 2012, 03:41 PM
Hello Afraei,

RadRibbonForm is designed especially to be used with RadRibbonBar. You can try using RadForm, but it will not look properly when used with a RadRibbonBar - you will get double title bar, two sets of system buttons and the application button will not be positioned where it is expected to be.

I am sending you a sample project which demonstrates the workaround that I have proposed.

I hope this helps. Feel free to ask if you have any additional questions.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Afraei
Top achievements
Rank 1
answered on 15 Jun 2012, 09:07 AM
Hello dear Ivan,

Firstly, thank you for your help.

I ran your sample project but still the RadRibbonForm doesn't allow taskbar to appear by mouse.

Regards
0
Ivan Todorov
Telerik team
answered on 19 Jun 2012, 10:22 AM
Hello Argei,

The solution I have send you works correctly on my end. Can you please provide some information about the system you are running on: OS version, language and localization settings, color scheme / OS theme, DPI and resolution settings. This will let me provide you with a proper solution and help us in resolving the issue at a later stage.

Thank you for your cooperation.

Kind regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Afraei
Top achievements
Rank 1
answered on 24 Jun 2012, 07:12 AM
Hello,

Information about the system:
  • OS: XP SP3,
  • Language: english,
  • Color Quality: highest (32 bit)
  • DPI: 96,
  • Resolution: 1280*800

However, in your sample project didn't exist any *.sln so maybe I did a mistake to use your appreciated sample project. Could you please give me your project by its *.sln?

Thank you for your kindly help
Regards

0
Boryana
Telerik team
answered on 27 Jun 2012, 03:01 PM
Hi Afraei,

Thank you for writing back.

Please try the attached modified application and let me know whether it addresses the issue you experience.

I am looking forward to your reply.

Greetings,
Boryana
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Afraei
Top achievements
Rank 1
answered on 27 Jun 2012, 03:15 PM
Hello dear Boryana,

When i want to start debugging by F5 it shows some errors as below:

Error    1    The type or namespace name 'UI' does not exist in the namespace 'Telerik.WinControls' (are you missing an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    8    27    WindowsFormsApplication48
Error    2    The type or namespace name 'RadRibbonForm' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    13    34    WindowsFormsApplication48
Error    3    The type or namespace name 'FormControlBehavior' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    20    28    WindowsFormsApplication48
Error    4    The type or namespace name 'RadRibbonFormBehavior' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    25    40    WindowsFormsApplication48
Error    5    The type or namespace name 'IComponentTreeHandler' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    27    35    WindowsFormsApplication48
Error    6    The type or namespace name 'MinMaxInfo' could not be found (are you missing a using directive or an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.cs    33    53    WindowsFormsApplication48
Error    7    The type or namespace name 'UI' does not exist in the namespace 'Telerik.WinControls' (are you missing an assembly reference?)    D:\369483_WindowsFormsApplication48\Form1.Designer.cs    89    37    WindowsFormsApplication48

How to solve these errors?

Thank you very much
Regards
0
Boryana
Telerik team
answered on 02 Jul 2012, 11:51 AM
Hello Afraei,

Thank you for writing back.

Have you checked your project references? You should have WinControls, WinControls.UI and TelerikCommon dlls added to your project.

Greetings,
Boryana
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Afraei
Top achievements
Rank 1
answered on 10 Jan 2013, 09:37 PM
Hello dear Boryana,

Firstly, pardon me for the long delay to reply.

My problem was solved by your appreciated help but I would like to ask you that which version of Telerik creates (by default) RadRibbonForm without this problem? Or still we have to alter the code manually and should see that thin black line next to the bottom border of the form?
Is it possible to remove that thin black line?

Thank you in advance.
Regards
0
Ivan Todorov
Telerik team
answered on 14 Jan 2013, 02:47 PM
Hi Afraei,

The issue has not been addressed yet. You can subscribe to the PITS item I have previously logged and track it for any progress. You can also vote for it to increase its priority. As it gets more votes, we will consider scheduling it for a next release.

Should you have any other questions, feel free to ask.

Kind regards,
Ivan Todorov
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
RibbonBar
Asked by
Afraei
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Afraei
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or