PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WINDEV Mobile 26 feature!
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
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: wd260obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment