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

RadTitle bar and themes

1 Answer 27 Views
TitleBar
This is a migrated thread and some comments may be shown as answers.
Chom
Top achievements
Rank 1
Chom asked on 05 Nov 2013, 02:36 PM
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


1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Nov 2013, 03:08 PM
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 >>
Tags
TitleBar
Asked by
Chom
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or