Hi,
How can I do to have a simple RadRichTextEditor. See attached image please.
Best regards.
Eusebio.
3 Answers, 1 is accepted
Hi, Eusebio,
I would recommend you to have a look at our Demo application >> RichTextEditor >> CommandBar UI example which demonstrates a simplified UI for formatting the content in RadRichTextEditor:
The Demo app is usually located in the installation folder of the suite: C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2020\Examples\QuickStart\Bin
An alternative approach is to use the SelectionMiniToolBar. It is a floating toolbar that appears next to the current position after making a selection with the mouse in the document. It contains some useful commands for formatting text: https://docs.telerik.com/devtools/winforms/controls/richtexteditor/ui-for-applying-rich-text-formatting/selection-mini-toolbar
I hope this information helps. If you need any further assistance please don't hesitate to contact me.Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).
Thanks Dess,
If we use the RadCommandBar control, do I have to put my own icons? ... or ... How to include the icons Bold, Italic, etc.?
Best regards
Hi Eusebio,
If you use the RadCommandBar, it will be necessary to build it from scratch and to specify your own icons. Each of the buttons exposes an Image property and you could easily set it. For example, you can create a CommandBarButton and set its image as simply as this:
CommandBarButton buttonPrint = new CommandBarButton();
buttonPrint.Image = Image.FromFile(@"..\..\print.png");
You can refer to the RadCommandBar documentation for detailed information and examples: https://docs.telerik.com/devtools/winforms/controls/commandbar/getting-started. Additionally, you can also check the demo application already discussed in this thread: C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2020\Examples\QuickStart\Bin.
Alternatively, to the command bar, you can use a RichTextEditorRibbonBar: https://docs.telerik.com/devtools/winforms/controls/richtexteditor/ui-for-applying-rich-text-formatting/ribbon-ui. The control is already configured and it comes with built-in icons. In the latest release, R3 2020, we changed the icons with vector images so that they scale flawlessly on High DPI.
I hope this will help.
Regards,
Hristo
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).
Hello Hristo,
Sorry for opening up this topic again.
But I'm also using my own command bar and I was wondering if there is a way to take the rich text editor icon for bold, italic, etc.
Instead of my own icons
Thank you.
Best regards.
There is a set of bold, italic, underline images available in the installation folder of the suite and the Demo application's folder. It is usually located at the following path:
C:\Program Files (x86)\Progress\Telerik UI for WinForms R3 2021\Examples\QuickStart\Resources
Please have in mind the allowed cases for redistributing images that come with the installation of the Telerik UI for WinForms suite:
https://docs.telerik.com/devtools/winforms/deployment-and-distribution/redistributing-telerik-ui-for-winforms#usingthe-images-from-the-suite-in-your-solutions
I hope this information helps.