newTextBindings(n) 0.8 "Alternative Bindings for the Text Widget"

NAME

newTextBindings - Alternative Bindings for the Text Widget

SYNOPSIS

package require Tcl 8.5
package require Tk 8.5
package require newText ?0.8?

DESCRIPTION

The newText package provides a binding tag named newText for use by text widgets in place of the default Text binding tag.

The Text binding tag provides around one hundred bindings to the text widget (the exact number is platform-dependent). A few of these behave in a way that is different from most contemporary text-editing applications. newText aims to provide more familiar behaviour.

Features of the newText bindings that differ from the default Text bindings:

The last three cases, the behavior of Text is often useful, so newText gives you the option of retaining it, by setting variables defined in the ::newText namespace to 1 (instead of their default 0). Explaining these features in more detail:

CONFIGURATION OPTIONS

newText provides alternatives to a number of behaviours of the classic Text binding tag. Where there is an option, the newText behaviour is switched on by default, except for display-line indentation which is discussed on a separate page at newTextIndent.

The behaviour of newText may be configured application-wide by setting the values of a number of namespace variables:

::newText::classicAnchor

::newText::classicExtras

::newText::classicMouseSelect

::newText::overwrite

EXAMPLE

To use newText but keep classic Text 's variable-anchor feature:

 
package require newText
text .t
set ::newText::classicAnchor 1
bindtags .t {.t newText . all}

SEE ALSO

bindtags, newText , newTextIndent , text

KEYWORDS

bindtags, text