HTBasic Help
×
Menu
Index

String Widget - Selection

 
The SELECTION attribute is the text of the current selection including any <CR><LF>s. The current selection is the contents of the view panel that have been highlighted (selected) by pressing, dragging, and releasing the left mouse button on the view panel's contents, set programmatically by CURSOR POSITION and SELECTION LENGTH, or a previous set of  SELECTION.
 
If there is no current selection (SELECTION LENGTH is 0), setting this attribute inserts the text at the current CURSOR POSITION.