Colour button using in tdbrichviewedit

General TRichView support forum. Please post your questions here
Post Reply
jota
Posts: 48
Joined: Fri Sep 16, 2011 10:56 am

Colour button using in tdbrichviewedit

Post by jota »

Hi

In a form with a tdbrichviewedit object, i want insert a color button ¿perhaps a tbuttoncolor?, for changing colour text.

Is possible a small example of code that implements this management.

Thank in advance
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you use RichViewActions, place a button (for example, TToolButton on TToolBar).
Place TActionList on the form, use "Add standard action" to add TrvActionFontColor (or TrvActionFontColor).
Assign this action to the button's Action property.
No coding is required.


If you do not use RichViewActions, call ApplyStyleConversion on this button's OnClick, and implement OnStyleConversion event.
Example can be found in Demos\*\Editors\Editor2
Post Reply