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 HTML controls
  • Feature available in AAF
  • Font used by default in the HTML toolbar
  • Disabling the HTML formatting toolbar
  • Using the HTML 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 HTML edit control: Automatic formatting toolbar
Overview
In the HTML 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 HTML controls

To enable the formatting toolbar for the HTML controls:
  1. Display the description of an HTML edit control.
    • WINDEV The edit control is an "HTML" control.
    • WEBDEV - Server code The edit control is an "HTML text" control.
  2. In the "General" tab, specify whether the control uses an HTML toolbar:
    • WINDEV In WINDEV:
      Selecting the display mode of the formatting toolbar
    • WEBDEV - Server code In WEBDEV:
      Selecting the display mode of the formatting toolbar
      The "Configuring the toolbar" button is used to select the options proposed by the toolbar.
  3. Validate.

Feature available in AAF

WINDEVWINDEV Mobile In an HTML edit control, the end user can enable the formatting toolbar via "Toolbar for HTML formatting" from the popup menu of the edit control.
WEBDEV - Server code In an HTML edit control, the HTML toolbar is always visible or it is automatically displayed (depending on the option selected in the "General" tab of the description window of the control).

Font used by default in the HTML toolbar

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

Disabling the HTML formatting toolbar

To avoid displaying the "HTML formatting toolbar" option in the popup menu of the edit control, use DisableAAF associated with the aafRTFToolbar constant.To avoid displaying the "HTML formatting toolbar" option in the popup menu of the edit control, use AAFDisable (or DisableAAF) associated with the aafRTFToolbar constant.
Caution: This function will also disable the formatting toolbar of RTF controls.
Using the HTML formatting toolbar
WINDEV The HTML toolbar is as follows:
HTML formatting toolbar
This bar allows you to choose:
  • The font used and its size.
  • The characteristics of the font (bold, underlined, italic, strikeout).
  • The color of the font.
  • The highlighting color.
  • The characteristics for text alignment.
  • The characteristics of links.
  • The characteristics of images.
The keyboard shortcuts that can be used to format the text are as follows:
  • Italic: CTRL + I
  • Bold: CTRL + G
  • Underlined: CTRL + U or CTRL + _ (underscore, below the 8)
  • Struck out: CTRL + - (dash, below the 6)
  • Highlighted: CTRL + H
The "Color" button does not reflect the color of the selection: it corresponds to the last value selected by the user.
WEBDEV - Server code The default HTML bar is as follows:
This bar allows you to choose:
  • The font used and its size.
  • Versions 17 and later
    The logical formatting of the text (div, h1, ...).
    New in version 17
    The logical formatting of the text (div, h1, ...).
    The logical formatting of the text (div, h1, ...).
  • The characteristics of the font (bold, underlined, italic, strikeout).
  • The color of the font.
  • Versions 17 and later
    The highlighting color.
    New in version 17
    The highlighting color.
    The highlighting color.
  • The characteristics for text alignment.
  • The bullets and the numbering.
  • The right ant left indents.
  • The subscript or superscript feature.
  • The characteristics of links.
  • The characteristics of images.
Versions 17 and later
Note:
The colors proposed by default are the ones used by the skin of the site. All you have to do is click the requested color. This allows you to use consistent colors in the site.
New in version 17
Note:
The colors proposed by default are the ones used by the skin of the site. All you have to do is click the requested color. This allows you to use consistent colors in the site.
Note:
The colors proposed by default are the ones used by the skin of the site. All you have to do is click the requested color. This allows you to use consistent colors in the site.
Related Examples:
WD Mail Complete examples (WINDEV): WD Mail
[ + ] This application is an email client developed in WINDEV. It is based on the Email objects.
This email client is used to retrieve and send emails by using the POP, IMAP and SMTP protocols.
You have the ability to apply filters to the incoming emails.

The application can also be used to manage several email accounts. The writing of an email is based on the HTML edit control.
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment