ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
RTF input field: Automation 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. On the "General" tab, indicate if 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.
Attention: This command will also disable 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:
  • Italics: Ctrl + I
  • Bold: Ctrl + G
  • Underline: Ctrl + U or Ctrl + _ (underscore, under the 8 key)
  • Strikethrough: Ctrl + - (dash, under key 6)
  • Overline: 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 chosen by the user.
Minimum version required
  • Version 12
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help