guides:programming:programmers_reference_manual:dragtextselection

DRAGTEXTSELECTION Property

Drag Source Editline, Editbox and Edittable controls.

Contains the starting point and length of the selected text used for a drag operation.

dragTextSel = Get_Property(dragSource,"DRAGTEXTSELECTION")

An @fm-delimited array of the starting position and the length.

Declare function Get_Property

 

* retrieve the DRAGTEXTSELECTION property and display data in a message

 

dragSource = Get_Property("SYSTEM","DRAGSOURCE")

dragTextSel = Get_Property(dragSource,"DRAGTEXTSELECTION")

swap @fm with ',' in dragTextSel

msgText = "The data starts in position ":dragTextSel<1>: " and is "

msgText:= dragTextSel<2> :" characters long."

msg(@window,msgText)
  • guides/programming/programmers_reference_manual/dragtextselection.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1