I've managed to get around to trying to update one of my programs to
8.5 and have found a few 'differences'
I had a few problems with tile -> ttk but they seem to be fixed.
The text widget virtual event <<Selection>> used to fire when the
insertion cursor was moved (I know this is not necessarily correct)
but now it only fires on a drag button 1 the question is how can I map
the cursor movement to a callback, I tried keypress but the insert
marker has not yet moved and keyrelease does not work for repeated key
presses. Are there any other virtual events whic are triggered or some
other mechanism to detect this.
I am having problems with the <<Modified>> event as well but that may
be ctext and so I am still checking that out.
Martyn
> The text widget virtual event <<Selection>> used to fire when the
> insertion cursor was moved (I know this is not necessarily correct)
> but now it only fires on a drag button 1 the question is how can I map
> the cursor movement to a callback, I tried keypress but the insert
> marker has not yet moved and keyrelease does not work for repeated key
> presses. Are there any other virtual events whic are triggered or some
> other mechanism to detect this.
You can override the core widget to trap anything, or redo bindings to
the same effect. I am curious though why cursor movements are
something you want triggers for.
> I am having problems with the <<Modified>> event as well but that may
> be ctext and so I am still checking that out.
ctext does have some 8.5 upgrade issues, mostly related to the new
smooth-scrolling behavior of text widgets which makes it harder to
exactly match line-by-line.
Jeff
I've fixed the line number scrolling it was only 3 lines of TCL Larry
V sugested sending a patch for tklib, I dont know how to go about that
but will look into it. I even adjust the line numbers for continuation
lines so that the TCL relative line numbers display correctly.
As for the Cursor movement there are several uses, the first is
displaying the line/column numbers somewhere others are basically
modifying some context information, eg what function is this line in
adding current line highlighting, changing state depending on the line/
column....
I will try to disect ctext a bit more for the information.
The selection trigger was so much simpler.
Martyn
To submit a patch for tklib, use the tracker at:
http://sourceforge.net/tracker/?group_id=12883&atid=312883
(http://sourceforge.net/projects/tcllib)
Category: tklib:ctext
Michael
I do not have an account on sourceforge do I need one to log a patch ?
Do I need to generate a patch file for the latest version of ctext or
is a description sufficient, my ctext is an older (pre tklib) version
which has been heavily patched to handle bookmarks and tcl proc
highlighting so I cannot use this to generate a patch.
Anyway the modifications are simple to add and basically add a few
lines at the end of a couple of procs.
Martyn
I seem to be having major problems with the text widget, If I reopen
12 files loaded into individual text widgets the first 5/6 are ok then
the rest take a major hit (up to 2 seconds per file, under 8.4.12 16
files in < 1 second), I do not know if this is related to ctext I will
try some more investigation with only text widgets.
Martyn