Skip to content

pbAutoUrl - DfBaseRichEdit

Toggles the ability for the control to automatically detect URLs and add hyperlinks

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbAutoUrl
Access Type Syntax
Read Access: Get pbAutoUrl to BooleanVariable
Write Access: Set pbAutoUrl to BooleanVariable/Value

Description

Toggles the ability for the control to automatically detect URLs (Uniform Resource Locators) and add hyperlinks to the control's text when URLs are detected.

If automatic URL detection is enabled (pbAutoUrl = True), the control scans any modified text to determine whether the text matches the format of a URL. The control detects URLs that begin with the following prefixes: http:, https:, file:, mailto:, ftp:, gopher:, nntp:, prospero:, telnet:, news:, wais:

When it detects a URL, the control highlights the URL string by underlining it and setting the text color.

This property has no effect if control is not paged.

Sample

This sample enables automatic URL detection.

set pbAutoUrl to True

Sample

This sample disables automatic URL detection.

set pbAutoUrl to False
Col 1 Col 2
Note: When automatic URL detection is enabled (pbAutoUrl = True), the control removes the pbLink effect from modified text that does not have a URL format recognized by the control. If your application uses the pbLink effect to mark other types of text, do not enable automatic URL detection.