PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Static and HTML static
  • Validity of HTML code
  • Limitation
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 CaptionHTML property is used to handle the text of a control as HTML code.
Versions 23 and later
WEBDEV - Browser code This property is now available in browser code.
New in version 23
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is now available in browser code.
Example
LINK_GSC.CaptionHTML = "Display the <strong>general sales conditions</strong>"
Syntax

Retrieving the value of control caption Hide the details

<Result> = <Control to use>.CaptionHTML
<Result>: Character string
Control caption in HTML format.
<Control to use>: Control name
Name of the control to be used: Rich Text Area, Button, etc.

Modifying the value of control caption Hide the details

<Control to use>.CaptionHTML = <New value>
<Control to use>: Control name
Name of the control to be used: Rich Text Area, Button, etc.
<New value>: Character string (with quotes)
New caption for the control. This value must correspond to a valid HTML code.
Remarks

Static and HTML static

A control includes a caption or an HTML caption: it cannot include both at the same time. Assigning a value to the CaptionHTML property deletes the value of the text assigned with the Caption property (and conversely).
An error occurs if the Caption property is accessed in read-only mode and the text in the control is in HTML. However, reading the CaptionHTML property in a control whose caption has been assigned using the Caption property returns the value of the caption in HTML.
Summary table:
Property assigned in the control: CaptionProperty assigned in the control: CaptionHTML
Property read: CaptionReturns the value.Error.
Property read: CaptionHTMLReturns the value encoded in HTML.Returns the value.

Validity of HTML code

No check is performed regarding the validity of HTML code. If an invalid HTML value is assigned in the control, the page may not be displayed properly by the browser. You must pay attention to:
  • The tags (and attributes) not properly closed or invalid for the HTML standard of the page (HTML 4, HTML 5, ...).
  • The encoding of special characters. You have the ability to use TextToHTML.

Limitation

This property is available for the following controls:
  • Button control,
  • Link control,
  • Rich Text Area control,
  • Versions 20 and later
    Edit control,
    New in version 20
    Edit control,
    Edit control,
  • Versions 20 and later
    Check Box control,
    New in version 20
    Check Box control,
    Check Box control,
  • Versions 20 and later
    Radio Button control,
    New in version 20
    Radio Button control,
    Radio Button control,
  • Versions 20 and later
    List Box control,
    New in version 20
    List Box control,
    List Box control,
  • Versions 20 and later
    Formatted display control,
    New in version 20
    Formatted display control,
    Formatted display control,
  • Versions 20 and later
    Combo Box control,
    New in version 20
    Combo Box control,
    Combo Box control,
  • Versions 20 and later
    Option of Check Box control,
    New in version 20
    Option of Check Box control,
    Option of Check Box control,
  • Versions 20 and later
    Option of Radio Button control,
    New in version 20
    Option of Radio Button control,
    Option of Radio Button control,
  • Versions 21 and later
    Menu option.
    New in version 21
    Menu option.
    Menu option.
  • Versions 22 and later
    Table column.
    New in version 22
    Table column.
    Table column.
Minimum version required
  • Version 19
Comments
Video Html
https://youtu.be/ZED2E8Ub2Jk
https://windevdesenvolvimento.blogspot.com/2019/08/dicas-2233-windev-webdev-mobile-24.html
//
edt_texte_token..captionHTML=[
digite seu <strong>Email</strong>
]
amarildo
06 Aug. 2019