Tk Source Code

Check-in [5ddbec41]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Documented the <<UndoStack>> event
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tip-446-canundo
Files: files | file ages | folders
SHA1: 5ddbec41ee681a75ebfb8e365636d463812f680e
User & Date: fvogel 2016-05-12 21:22:57
Context
2016-05-12
21:24
Removed useless precision regarding the <<UndoStack>> event check-in: bab37fee user: fvogel tags: tip-446-canundo
21:22
Documented the <<UndoStack>> event check-in: 5ddbec41 user: fvogel tags: tip-446-canundo
21:12
Added <<UndoStack>> event, triggering when either the undo stack or the redo stack becomes empty or unempty check-in: 1dfd1615 user: fvogel tags: tip-446-canundo
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/event.n.

347
348
349
350
351
352
353




354
355
356
357
358
359
360
action.
.TP
\fB<<TraverseOut>>\fR
This is sent to a widget when the focus leaves the widget because of a
user-driven
.QW "tab to widget"
action.




.TP
\fB<<WidgetViewSync>>\fR
This is sent to a text widget when its internal data become obsolete,
and again when these internal data are back in sync with the widget
view. The detail field (%d substitution) is either true (when the
widget is in sync) or false (when it is not).
.PP






>
>
>
>







347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
action.
.TP
\fB<<TraverseOut>>\fR
This is sent to a widget when the focus leaves the widget because of a
user-driven
.QW "tab to widget"
action.
.TP
\fB<<UndoStack>>\fR
This is sent to a text widget when its undo stack or redo stack becomes
empty or unempty.
.TP
\fB<<WidgetViewSync>>\fR
This is sent to a text widget when its internal data become obsolete,
and again when these internal data are back in sync with the widget
view. The detail field (%d substitution) is either true (when the
widget is in sync) or false (when it is not).
.PP

Changes to doc/text.n.

892
893
894
895
896
897
898




899
900
901
902
903
904
905
control.
.PP
Separators are inserted automatically when the \fB\-autoseparators\fR widget
option is true. You can insert separators programmatically as well. If a
separator is already present at the top of the undo stack no other will be
inserted. That means that two separators on the undo stack are always
separated by at least one insert or delete action.




.PP
The undo mechanism is also linked to the modified flag. This means that
undoing or redoing changes can take a modified text widget back to the
unmodified state or vice versa. The modified flag will be set automatically to
the appropriate state. This automatic coupling does not work when the modified
flag has been set by the user, until the flag has been reset again.
.PP






>
>
>
>







892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
control.
.PP
Separators are inserted automatically when the \fB\-autoseparators\fR widget
option is true. You can insert separators programmatically as well. If a
separator is already present at the top of the undo stack no other will be
inserted. That means that two separators on the undo stack are always
separated by at least one insert or delete action.
.PP
The \fB<<UndoStack>>\fR virtual event is generated every time the undo stack
or the redo stack becomes empty or unempty. This event is generated once for
each peer widget.
.PP
The undo mechanism is also linked to the modified flag. This means that
undoing or redoing changes can take a modified text widget back to the
unmodified state or vice versa. The modified flag will be set automatically to
the appropriate state. This automatic coupling does not work when the modified
flag has been set by the user, until the flag has been reset again.
.PP