Toolbar
Connecting the toolbar
Drop a TTMSFNCRichEditorToolBar on the form and link it to the editor:
RichEditorToolBar1.RichEditor := RichEditor1;
The toolbar automatically reflects the formatting at the cursor and enables or disables its buttons as the user moves through the document.
Layout
Dock the toolbar above or below the editor:
RichEditorToolBar1.Align := alTop;
RichEditor1.Align := alClient;
On mobile, a floating toolbar or a bottom-docked toolbar tends to work better.
Customizing visible buttons
The toolbar exposes individual buttons for each formatting action. Set Visible to False on any button you do not need. For example, to hide the superscript and subscript buttons:
RichEditorToolBar1.ButtonSuperScript.Visible := False;
RichEditorToolBar1.ButtonSubScript.Visible := False;
Related API
TTMSFNCRichEditorToolBar—RichEditorTTMSFNCRichEditor
See also
- Editing and formatting — programmatic formatting without the toolbar