|
|
|
|
|
- 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
RTF input field: Automation formatting toolbar
In RTF Edit controls, a formatting toolbar can now be automatically displayed when the control becomes editable. Formatting options are then automatically managed. Enabling the formatting toolbar for RTF controls To enable the formatting toolbar for RTF controls: - Open the description of an RTF Edit control.
- On the "General" tab, indicate if the control uses an RTF toolbar:
- 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. 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|