PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Enabling the formatting toolbar for the 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The RTF edit control: Automatic formatting toolbar
Overview
In the RTF edit controls, a formatting toolbar can be automatically displayed as soon as the control becomes editable. The formatting options are automatically managed.
How to proceed?

Enabling the formatting toolbar for the RTF controls

To enable the formatting toolbar for the RTF controls:
  1. Display the description of an RTF edit control.
  2. In the "General" tab, specify whether the control is using an RTF toolbar:
  3. Validate.

Feature available in AAF

In an RTF edit control, the end user can enable the formatting toolbar via "Toolbar for RTF formatting" from the popup menu of the edit control.

Font used by default in the RTF toolbar

At run time, the RTF toolbar is initialized with the font, the size and the font attributes specified in the description of the RTF control. This font can be modified by programming with the properties for font management.

Disabling the RTF formatting toolbar

To avoid displaying "RTF formatting toolbar" in the popup menu of the edit control, use DisableAAF associated with the aafRTFToolbar constant.To avoid displaying the "RTF formatting toolbar" option in the popup menu of the edit control, use AAFDisable (or DisableAAF) associated with the aafRTFToolbar constant.
Caution: This command will also disable the formatting toolbar of HTML controls.
Using the RTF formatting toolbar
The RTF formatting bar is as follows:
The keyboard shortcuts that can be used to format the text are as follows:
  • Italic: CTRL + I
  • Bold: CTRL + G
  • Underline: CTRL + U or CTRL + _ (underscore, below the 8)
  • Strike out: CTRL + - (dash, below the 6)
  • Highlighted: CTRL + H
When the selected text corresponds to a toolbar option (underlined text 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 required version
  • Version 12
Comments
Click [Add] to post a comment