RadTitle bar and themes

2 posts, 0 answers
  1. Chom
    Chom avatar
    56 posts
    Member since:
    Dec 2009

    Posted 05 Nov 2013 Link to this post

    Hello,

    Winforms.

    I have an application whereby I am creating a pop up window with a new rad form. My first dilemma was when I applied themes globally and I use the "Aqua" theme, I need to get the text to align left with the form set at FixedDialog.
    I then started adding a RadTitle bar which sort of resolved the problem, however when I applied the "Aqua" theme and any other theme I lost the pop up border as seen in image and here are some settings in the load event

    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

    this.MaximizeBox = false;

    this.MinimizeBox = false;

    Size = new Size(422, 433);

    Assistant.CenterFormOnScreen(this);

    this.Text = "Aqua Theme";

    Also not the circle on the left is gray and the Aqua theme makes it red with an x when you mouse over it.


    Now when I set the settings in the form load to change the form border and I get two titles in the form.

    this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;

    this.MaximizeBox = false;

    this.MinimizeBox = false;

    Size = new Size(422, 433);

    Assistant.CenterFormOnScreen(this);

    this.Text = "Aqua Theme";

    It is an MDI application and these are pop up forms.
    Can someone tell me if this is normal or what other settings am I missing.

    Thanks

    Chom


  2. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 08 Nov 2013 Link to this post

    Hello Chom,

    Thank you for contacting Telerik Support.

    By default our RadForm contains title bar inside it and it is not necessary to add an extra one. FormBorderStyle specifies the border styles for a form. If its value is None, no borders and title bar will be displayed. In this situation it is reasonable to an additional title bar. But if you choose to use FormBorderStyle.FixedDialog it is redundant to use two title bars. RadTitleBar is a great addition to the ShapedForm which is appropriate for your solution.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top