Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

8.5 differences

9 views
Skip to first unread message

MSEdit

unread,
Jun 12, 2009, 12:15:58 PM6/12/09
to
Hello,

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

Jeff Hobbs

unread,
Jun 12, 2009, 2:36:23 PM6/12/09
to
On Jun 12, 9:15 am, MSEdit <mse...@gmail.com> wrote:
> I've managed to get around to trying to update one of my programs to
> 8.5 and have found a few 'differences'

> 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

MSEdit

unread,
Jun 13, 2009, 11:29:23 AM6/13/09
to

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

Michael Schlenker

unread,
Jun 14, 2009, 12:48:38 PM6/14/09
to
MSEdit schrieb:

> On Jun 12, 8:36 pm, Jeff Hobbs <jeff.ho...@gmail.com> wrote:
>> On Jun 12, 9:15 am, MSEdit <mse...@gmail.com> wrote:
>>
>>> I've managed to get around to trying to update one of my programs to
>>> 8.5 and have found a few 'differences'
>>> 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.

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

MSEdit

unread,
Jun 16, 2009, 4:27:26 AM6/16/09
to
On Jun 14, 6:48 pm, Michael Schlenker <schl...@uni-oldenburg.de>
wrote:

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

MSEdit

unread,
Jun 18, 2009, 3:31:01 AM6/18/09
to

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

0 new messages