KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: The 4D v12 Rich Text Area Component
PRODUCT: 4D | VERSION: 12.1 | PLATFORM: Mac & Win
Published On: May 20, 2011

This Technical Note introduces Rich Text Area, a new 4D component that allows end-users to edit styled text in an intuitive and easy manner. The Technical Note includes documentation on what the Rich Text Area component is and how to use it, from installation through end-user interaction. The new rich text feature in 4D v12 is summarized as well, because understanding of that feature is necessary to understand the Rich Text Area. A sample database is included with this Technical Note showing how Rich Text Areas can be implemented.

Download Complete Tech Note and Example: Tech Note Document and Demo Database

Commented by on May 18, 2022 at 1:35 PM
The SOURCES folder mentioned in the .pdf is not in the download. It would be nice to see the source code.
Commented by Thomas Fitch on May 23, 2011 at 11:04 AM
Hi Keith,

1. The variable rta_text getting the value entered... you found a bug in 4D that we missed; I've filed the bug and uploaded a new version of the sample database that works around that problem.

2. Document pages 10 versus 11, that was a typo, the screenshots were taken at different points in developing the sample and the variable name changed. I've uploaded a new version of the document with screenshots that match.

Thanks for the feedback!
Commented by Keith Culotta on May 20, 2011 at 10:24 AM
In the form: Rich_Text_Area_Sample, the below code executes and rta_text gets the assignment. However, this text does not display on page two. Should it?

: (Form event=On Load)
C_TEXT(rta_text)
OBJECT MOVE(*;"my_rta";15;75;615;315;*)
rta_text:="Enter text for styling here."

rta_text does receive typed text after that.

Also, in the documentation between pages 10 and 11, the object named "my_rta" changed variable names from "my_rta_var" to "rta_text". Is one inside the subform?