Previous: , Up: BLOX.BEdit   [Index]


1.15.3 BLOX.BEdit: widget protocol

destroyed

Private - The receiver has been destroyed, clear the corresponding Tcl variable to avoid memory leaks.

hasSelection

Answer whether there is selected text in the widget

insertAtEnd: aString

Clear the selection and append aString at the end of the widget.

insertText: aString

Insert aString in the widget at the current insertion point, replacing the currently selected text (if any).

invokeCallback

Generate a synthetic callback.

nextPut: aCharacter

Clear the selection and append aCharacter at the end of the widget.

nextPutAll: aString

Clear the selection and append aString at the end of the widget.

nl

Clear the selection and append a linefeed character at the end of the widget.

replaceSelection: aString

Insert aString in the widget at the current insertion point, replacing the currently selected text (if any), and leaving the text selected.

selectAll

Select the whole contents of the widget.

selectFrom: first to: last

Sets the selection to include the characters starting with the one indexed by first (the very first character in the widget having index 1) and ending with the one just before last. If last refers to the same character as first or an earlier one, then the widget’s selection is cleared.

selection

Answer an empty string if the widget has no selection, else answer the currently selected text

selectionRange

Answer nil if the widget has no selection, else answer an Interval object whose first item is the index of the first character in the selection, and whose last item is the index of the character just after the last one in the selection.

space

Clear the selection and append a space at the end of the widget.


Previous: , Up: BLOX.BEdit   [Index]