A Selection record describes the state of a text selection in a window. The Selection record has the following fields:
Field |
Description |
lnFirst |
the first line number |
ichFirst |
the index of the first character on the line lnFirst |
lnLast |
the last line number |
ichLim |
the limit index (one past the last) of the last character on the line given in lnLast |
fExtended |
TRUE if the selection is extended to include more than one character. FALSE if the selection is a simple insertion point. this is the same as the following expression: (sel.fRect || sel.lnFirst != sel.lnLast || sel.ichFirst != sel.ichLim) |
fRect |
TRUE if selection is rectangular (block style). FALSE if the selection is a linear range of characters. |
The following fields only apply if fRect is TRUE: |
|
xLeft |
the left pixel position of the rectangle in window coordinates. |
xRight |
the pixel position of the right edge of the rectangle in window coordinates. |