Hi *,
how is it possible to define the Location of the Forms Control box (Close, max, min) for the form to be right, the form Icon in the left and the title in the middle?
I use Crystal Dark theme and there is by Default the locaiton on the left side of the Dialog as it should be :)
Thanks
Rostislaw
4 Answers, 1 is accepted
Hi Rostislaw,
By default, the Crystal theme is using RightToLeft alignment. It can be disabled with the following property:
this.FormElement.TitleBar.RightToLeft = false;
I hope this helps. Should you have any other questions, do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Dimitar,
Thanks for that example. If I want to use other controls that open a dialog (example: radRibbon | File | Print Preview) how do I set the titlebar of the dialogs to left to right? I'd like all of the windows that are opened in the application to be consistent.
If the answer is to modify the theme, are there any good resources to learn how to do that?
Thank you for any help!
Hello Rostislaw,
Changing this in the theme is better because you will change it in one place and it will affect all forms. Here are the steps you need to take to achieve this:
- Extract the predefined themes, which will allow you to edit the crystal theme: Loading Predefined Themes
- Change the RigtToLeft property in the theme (see attached).
- Save and use the new theme in your application: Using custom themes
Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik