PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of docElementLink variables
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 docElementLink type is used to find out the advanced characteristics of a Link element found in a docElement variable.
The characteristics of this type of variable docElementLink can be known and modified using different WLanguage properties.
CAUTION: This type cannot be used directly. It must be used via the docElement type.
Example
// Load the document
WP_MyDoc = ""
 
// Create a link element
elt is docElement
elt.Type = typeDocElementLink
elt.Lien.Lien = "https://www.pcsoft.com"
elt.Lien.Type = typeDocLinkURL
 
// Create a document fragment linked to the control used
f is docFragment(WP_MyDoc, 1)
 
// Add the link in the document
DocInsert(f, elt)
 
// Search for the link to add the text and define the style
FOR EACH eltInsert OF f.Element
set parent = eltInsert.Parent
parent.Link.Content.Text = "PC SOFT website"
parent.Link.Content.Formatting.ColourText = DarkBlue
parent.Link.Contents.Formatting.ColourUnderlined = DarkBlue
parent.Link.Contents.Formatting.underlined.font = True
BREAK
END
Remarks

Properties specific to the description of docElementLink variables

The following properties can be used to handle a lilnk in a document:
Property nameType usedEffect
Versions 23 and later
Tooltip
New in version 23
Tooltip
Tooltip
Character stringContent of tooltip associated with the link.
Versions 23 and later
Content
New in version 23
Content
Content
docFragment variableText associated with the link.
LinkCharacter stringLink content (file path, site name, ...). The link caption cannot be known.
TypeIntegerType of link :
  • typeDocLinkBookmark: Bookmark link.
  • typeDocLinkURL: URL link used to open a document.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment