PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Typing captions in rich text
  • Editing the HTML code of captions
  • Handling the rich or HTML caption of controls by programming
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
Rich text, links and images in the WEBDEV controls
Overview
A rich text is a text that includes enhanced features: font, weight, size, color, attribute, ...
In version 19, the rich text could be used in the Text Area controls and in the Button controls.
From version 20, the rich text can be used in several controls:
You have the ability to use rich text in several controls:
  • Edit control
  • Combo box
  • List box
  • Check box
  • Radio button
  • Link
The rich text can correspond to:
  • the caption of control.
  • the caption of options (for the Radio Button or Check Box controls for example).
Example:
A Radio Button control whose options include rich text
How to proceed?

Typing captions in rich text

To use rich text in the caption of control:
  1. Select the control found in the page.
  2. Display the popup menu of control (right mouse click) and select "Edit the caption".
  3. The control caption switches to "Edit" mode: a yellow border appears around the selected caption.
  4. You have the ability to customize the enrichment via the "Text" pane that appears in the ribbon:
    You can for example:
    • Customize the text formatting.
    • Add a link.
    • Add an image.
  5. To validate, click anywhere in the page.
Some examples:
  • A Static control containing a link:
    A Static control containing a link
  • An edit control whose caption contains a link:
    An edit control whose caption contains a link
  • A Check Box control whose title is in bold and whose option caption contains a link:
    A Check Box control whose title is in bold and whose option caption contains a link
  • A Radio Button control whose title is in bold and whose option caption contains a link:
    A radio button whose title is in bold and whose option caption contains a link.
  • A request for email, with a red star:
    A request for email, with a red star
Notes:
  • To make the caption editable, you can also:
    • from the editor, click the control twice.
    • from the description window of the control, in the "General" tab, click the "Edit the rich text" button.
  • To edit an option found in a Check box or Radio Button control:
    • from the editor, select the control and click the requested option: the option becomes editable.
    • from the description window of the control, in the "Content" tab, select the requested option and click the "Edit the rich text" button.

Editing the HTML code of captions

You have the ability to edit the HTML source code of captions from WINDEV. This allows you to modify the generated HTML code, to add your own HTML code to propose a specific effect for example, ...
To edit the HTML code of a caption:
  1. Select the control found in the page.
  2. Display the description window of control ("Description" from the popup menu).
  3. In the "General" tab, click "Edit the HTML source code".
  4. The HTML code editor appears. You have the ability to modify the HTML code.
Notes:
  • If possible, the modifications performed in the HTML code editor are visible in WYSIWYG in the page editor. The advanced HTML codes (animation type) are not visible.
  • The HTML code editor allows you to type HTML code containing Javascript functions. See HTML Editor for more details.

Handling the rich or HTML caption of controls by programming

To handle the rich text of controls by programming (caption of control or caption of options), use ..CaptionHTML.
Minimum required version
  • Version 20
Comments
Click [Add] to post a comment