1. IDE Editor Fix

Here's a small fix for the IDE Editor that should speed it up quite a bit:
In IDE_EDIT.EW, in the routines vscroll_Scroll and hscroll_Scroll, change
the code:

   setFocus( mle )
   editorDraw()

to:

   if not hasFocus then
      setFocus( mle )
      editorDraw()
   end if

This prevents the scrollbar from repainting the window if it doesn't have
focus. You should find the editor changes from slug-slow to nice and
responsive, no matter what size the window is.

There are compelling reasons to use an emulated editor, instead of a hacked
RTF control. Besides being more responsive and unlimited in size, it lends
itself to adding such nice things as context-sensitive hints. I'll look into
adding something like this.

-- David Cuny

new topic     » topic index » view message » categorize

2. Re: IDE Editor Fix

Hi David,
Used the patch you supplied but if I use the mouse to page up & down on the
scroll bar in never releases focus.
I mean that if I then use the cursor up or down key the whole page scrolls
and I can't type anything. If I don't use the mouse the editor really works
much faster.

Regards
Tony Steward

Come Visit Me At www.locksdownunder.com

----- Original Message -----
From: "David Cuny" <dcuny at LANSET.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, March 29, 2001 11:53 AM
Subject: IDE Editor Fix


>
>
> Here's a small fix for the IDE Editor that should speed it up quite a bit:
> In IDE_EDIT.EW, in the routines vscroll_Scroll and hscroll_Scroll, change
> the code:
>
>    setFocus( mle )
>    editorDraw()
>
> to:
>
>    if not hasFocus then
>       setFocus( mle )
>       editorDraw()
>    end if
>
> This prevents the scrollbar from repainting the window if it doesn't have
> focus. You should find the editor changes from slug-slow to nice and
> responsive, no matter what size the window is.
>
> There are compelling reasons to use an emulated editor, instead of a
hacked
> RTF control. Besides being more responsive and unlimited in size, it lends
> itself to adding such nice things as context-sensitive hints. I'll look
into
> adding something like this.
>
> -- David Cuny
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: IDE Editor Fix

Tony Steward wrote:

> Used the patch you supplied but if I use
> the mouse to page up & down on the scroll
> bar in never releases focus.

Ooops, sorry. I didn't mean to imply that it was a final, well tested fix,
just that I had identified where the slowdown appeared to be coming from. If
Judith has tested my other 'improvements', she'll discover that they are
equally buggy (but still cool!).

I'll have a look at it.

> I mean that if I then use the cursor up or
> down key the whole page scrolls and I can't
> type anything.

I *suspect* releasing the focus flag before scolling will take care of this.
I'm sure there are other bugs lurking as well.

> If I don't use the mouse the editor really works
> much faster.

Yeah, it actually becomes quite usable. As I mentioned before, I think it's
a better route to take than to try hacking the same functionality into an
RTF control. If the new features ever get sufficiently debugged and
released, you'll see why.

The editor routine is stand-alone, so at some point I'll probably rip it out
of the IDE and incorporate it into the 'generic' editor.

Thanks, and sorry for the inconvenience.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu