PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Handling the value of an RTF control
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 that applies to the edit controls and to the Static controls. This option is located in the "Details" tab of the control description.
  • of a Static control found in a report.
    Reminder: The RTF type is an option that applies to the Static controls. This option is found in the "General" tab of the control description.
You can:
  • find out whether the control is in RTF.
  • modify the RTF type of a control.
Example
// If the "STC_Name" control is in RTF, it becomes visible
IF STC_Name.RichEdit = True THEN
STC_Name.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 the control to be used:
  • Edit control or Static control in a window.
  • Static control in a report.

Modifying the RTF type of a control Hide the details

<Control used>.RichEdit = <Type>
<Control used>: Control name
Name of the control to be used:
  • Edit control or Static control in a window.
  • Static 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 the assignment (or the read operation) is performed directly or by Value: the value of the RTF control is in RTF (this value contains RTF tags).
  • If the assignment (or the read operation) is performed by RTFToText: the value of the RTF control is not in RTF (this value contains no RTF tag).

Limits

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