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

Simploe RichTextEditor

3 Answers 197 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Eusebio
Top achievements
Rank 1
Veteran
Eusebio asked on 29 Sep 2020, 08:53 AM

Hi,

 

How can I do to have a simple RadRichTextEditor. See attached image please.

 

Best regards.

Eusebio.

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Sep 2020, 09:12 AM

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).

0
Eusebio
Top achievements
Rank 1
Veteran
answered on 29 Sep 2020, 01:50 PM

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

 

0
Hristo
Telerik team
answered on 30 Sep 2020, 08:14 AM

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 RichTextEditorRibbonBarhttps://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).

Kevin
Top achievements
Rank 1
Iron
commented on 17 Jan 2022, 01:58 AM

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.

Dess | Tech Support Engineer, Principal
Telerik team
commented on 17 Jan 2022, 10:47 AM

Hello, Kevin,

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.
Tags
RichTextEditor
Asked by
Eusebio
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Eusebio
Top achievements
Rank 1
Veteran
Hristo
Telerik team
Share this question
or