ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / HTML Editor functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Asynchronously retrieves the current selection from an HTML Editor control.
Remark: This function is particularly useful for Android and iOS applications for which the Selection WLanguage property is not available in read-only mode.
Example
// Gray out the "Open" button (or not) according to the selection
HTMEDT_MyHTMLEditor.GetSelection(HTMLEditorGetSelection_Callback)
INTERNAL PROCEDURE HTMLEditorGetSelection_Callback(Selection is edtHTMLSelection)
  BTN_Open.Grayed = NOT Left(Selection.Text, "https:\\" )
END
Syntax
<HTML Editor control>.GetSelection(<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 <Procedure name>(MySelection is edtHtmlSelection)
where <MySelection> is an edtHTMLSelection variable that corresponds to the current selection in the HTML Editor control.
Component: wd290obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help