AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Intercepting the click performed on a link in an edit control
  • Limitation
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The property AutomaticLink property allows you to:
  • determine if the automatic link detection mode is enabled,
  • enable or disable the automatic link detection mode.
This property is available on:
  • multiline Edit controls..
  • Word Processing controls.
When this property is enabled for an Edit control, links are automatically displayed as clickable links. The following links are taken into account:
  • URLs. For example, "http://www.windev.com".
  • full paths or UNC paths to a file. For example, "C:\temp\MyImages.gif". The link is displayed only if the file exists.
When the user clicks this link, the corresponding file is automatically displayed (ShellExecute is automatically executed with the text of the link as parameter). The click can be intercepted by the WM_USER + 853 event (see the Notes).
To select the link (without opening the document), all you have to do is press the Ctrl key.
When this property is enabled for a Word Processing control, links are detected during input, after pressing Space, Tab or Enter. If these links already exist, they can be opened with Ctrl + Click.
Remark: This property is identical:
  • the "Mostrar y activar enlaces" option in the "Details" tab of the Edit control description window.
  • the "Detectar y definir el formato de los enlaces automáticamente" option in the "General" tab of the Word Processing control description window.
Ejemplo
// Enables the automatic detection of links
EDT_Edit1.AutomaticLink = True
Sintaxis

Finding out the mode for automatic detection of links Ocultar los detalles

<Result> = <Control used>.AutomaticLink
<Result>: Boolean
  • True if the mode for automatic detection of links is enabled,
  • False otherwise.
<Control used>: Control name
Name of the field to be manipulated:
  • Edit control,
  • Word Processing control.

Modifying the mode for automatic detection of links Ocultar los detalles

<Control used>.AutomaticLink = <Enabled/Disabled>
<Control used>: Control name
Name of the field to be manipulated:
  • Edit control,
  • Word Processing control.
<Enabled/Disabled>: Boolean
  • True to enable the mode for automatic detection of links,
  • False otherwise.
Observaciones

Intercepting the click performed on a link in an edit control

You can intercept the click performed by the user on a link found in an edit control. Simply:
  1. Declare the event process in the initialization code of the window (WM_USER + 853 in this case).
    Event("proc_click", "*.*", WM_USER + 853)
  2. Create the procedure called by Event. The content of this procedure will be run before starting the application associated with the link.

Limitation

UNC format links in an Edit control: if the path contains a space, the link is not displayed in full. The link should be enclosed in quotes.
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 10/05/2025

Señalar un error o enviar una sugerencia | Ayuda local