hiGetCurrentTextSelectionLoc
hiGetCurrentTextSelectionLoc(w_windowId) =>l_listofCoords/nil
Description
Returns the text coordinates of the text selected in the specified viewfile window. This is the text which has been selected using a mouse action, such as by double-clicking or drag-selecting. If no text is selected in the specified window, the function returns nil.
Argument
|
Specifies the ID of the viewfile window for which the location of the current text selection should be returned |
Values Returned
|
Returns a list of two numbers, comprising of the first and last selected character indexes |
|
|
Returns |
Examples
hiGetCurrentTextSelectionLoc( window(3) )
=> (1597 1602) ;; Text between 1597 and 1602 is selected in window(3)
hiGetCurrentTextSelection( window(3) )
Related Topics
Return to top