ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / HTML Editor functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Asynchronously retrieves the current selection from an HTML Editor control.
Remark: This function is particularly useful for Android and iOS applications where the WLanguage property Selection is not available for reading.
Example
// Grise ou non le bouton Ouvrir selon la sélection
HTMLEditorGetSelection(EDHTML_MonEditeurHTML, EditeurHTMLRécupèreSélection_Callback)
INTERNAL PROCEDURE EditeurHTMLRécupèreSélection_Callback(Sélection is edtHTMLSelection)
   	BTN_Ouvrir.Grisé = NOT Left(Sélection.Text, "https:\\" )
END
Syntax
HTMLEditorGetSelection(<HTML Editor control> , <WLanguage procedure>)
<HTML Editor control>: Control name
Name of the HTML Editor control used.
<WLanguage procedure>: Procedure name
WLanguage procedure ("callback") executed once the selection has been retrieved. This procedure has the following format:
PROCEDURE <Nom de la procédure>(MaSélection est un edtHTMLSélection)
where <MySelection> is an edtHTMLSelection variable that corresponds to the current selection in the HTML Editor control.
Component: wd300obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help