Difference between revisions of "Component: ID component:GdiRichText"

From Flowcode Help
Jump to navigationJump to search
Line 31: Line 31:
  
 
==Macro reference==
 
==Macro reference==
 
+
This component has no macros.
 
 
  
 
==Property reference==
 
==Property reference==

Revision as of 15:29, 19 November 2025

Author MatrixTSL
Version 1.0
Category Creation


RichText component

Detailed description

The RichText component is a primitive that can be found under the 'Creation' tab of Component Libraries. It allows nicely-formatted text to be displayed in any 2D Panel and can be used for many purposes such as documenting your project or simply adding formatted text to your project simulation.

The component does not allow in-situ editing. Instead, text in richtext format (RTF) can be copied from and pasted into this component using the "Richtext" menu when right-clicking the component when the panel is is design mode (i.e. the project is not simulating). This menu is also available when the project is simulating, but the text can only be changed if the "Read only" property of the component is set to "no".

The raw richtext data is stored as a property of the component and can be edited directly (or programmatically) if required.

Note that not all RTF features are supported (e.g. embedded images and hyperlinks).

Examples

Here is an example Flowcode program for the RichText primitive. FC6 Icon.png Richtext Example

Macro reference

This component has no macros.

Property reference

Fc9-prop-icon.png Properties
Fc9-type-2-icon.png Colour
Specifies the fill colour of the shape 
Fc9-type-11-icon.png Data
The RTF data 
Fc9-type-7-icon.png Read only
Determines if the text can be altered during simulation or in a deployed PC Developer app