ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Handling the value of an RTF control
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The RichEdit property is used to manage the RTF (Rich Text Format) type:
  • WINDEVJava of a window control.
    Reminder: The RTF type is an option for Edit control and Static Text control fields.. This option is located in the "Details" tab of the control description.
  • of a Static Text control found in a report.
    Reminder: The RTF type is an option of the Static Text control fields.. This option can be found in the "General" tab of the control description.
It is possible to:
  • find out whether the control is in RTF.
  • modify the RTF type of a control.
Example
// Si le champ Libellé "LIB_Nom" est de type RTF, il devient visible
IF LIB_Nom.RichEdit = True THEN
	LIB_Nom.Visible = True
END
Syntax

Finding out whether the control is in RTF Hide the details

<Result> = <Control used>.RichEdit
<Result>: Boolean
  • True if the specified element is in RTF,
  • False otherwise.
<Control used>: Control name
Name of control to use:
  • Edit control or Static Text control in a window.
  • Static Text control in a report.

Modifying the RTF type of a control Hide the details

<Control used>.RichEdit = <Type>
<Control used>: Control name
Name of control to use:
  • Edit control or Static Text control in a window.
  • Static Text control in a report.
<Type>: Boolean
  • True if the specified element must be in RTF,
  • False otherwise.
Remarks
WINDEVWindows

Handling the value of an RTF control

  • If assignment (or reading) is direct or performed with the Value property: the RTF field value is in RTF format (this value contains RTF tags).
  • If assigned (or read) with the RTFToText function: the RTF field value is not in RTF format (this value contains no RTF tags).

Limits

In a window, the RichEdit property applies only to the following controls:
  • edit controls,
  • Static Text controls.
  • text table column.
In a report, the RichEdit property applies only to Static Text controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help