ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Automatic Application Features (AAF) / AAF on Edit controls
  • Overview
  • How to?
  • Enabling the formatting toolbar for RTF controls
  • Feature available in AAF
  • Font used by default in the RTF toolbar
  • Disabling the RTF formatting toolbar
  • Using the RTF formatting toolbar
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 RTF edit control: Automatic formatting toolbar
Overview
In RTF Edit controls, a formatting toolbar can now be automatically displayed when the control becomes editable. Formatting options are then automatically managed.
How to?

Enabling the formatting toolbar for RTF controls

To enable the formatting toolbar for RTF controls:
  1. Open the description of an RTF Edit control.
  2. In the "General" tab, indicate whether the control uses an RTF toolbar:
  3. Validate.
Caution: Only one RTF toolbar can be displayed in a window. If more than one control is in "Always visible" mode, the control that has focus takes precedence and will display the RTF toolbar.

Feature available in AAF

In an RTF Edit control, the end user can enable the formatting toolbar via the "RTF formatting toolbar" option in the context menu of the Edit control.

Font used by default in the RTF toolbar

At runtime, the RTF toolbar is initialized with the font, size and attributes specified in the control description. This font can be modified programmatically with the font properties.

Disabling the RTF formatting toolbar

To avoid displaying the "RTF formatting toolbar" option in the context menu of the Edit control, use AAFDisable with the aafRTFToolbar constant.
Caution: This command will also disable the formatting toolbar of HTML controls.
Using the RTF formatting toolbar
Here is the RTF formatting bar:
The keyboard shortcuts that can be used to format the text are as follows:
  • Italic: Ctrl + I
  • Bold: Ctrl + B
  • Underline: Ctrl + U
  • Strikethrough: Ctrl + 6
  • Highlighted: Ctrl + H
If the user selects text with a format (underline, for example), the corresponding button is pressed in the toolbar.
The "Color" button does not reflect the color of the selection: it corresponds to the last value selected by the user.
Minimum version required
  • Version 12
Comments
Click [Add] to post a comment

Last update: 09/22/2022

Send a report | Local help