Re: scrolling (three questions)

2003-10-30 Thread Angus Leeming
Ronald Florence wrote:

> Angus Leeming <[EMAIL PROTECTED]> writes:
> 
>> You should find that the xforms frontend does have a more
>> manageable scrolling behaviour.
> 
> I've used LyX from before version 1.0, with xforms and qt frontends,
> and don't remember the scrolling ever being satisfactory.  I wish it
> were better, but have from necessity developed -- as I suspect other
> LyX users have -- workarounds.  Why can't the scrolling be fixed? 
> It would be very useful to be able to mark large blocks of text with
> the mouse.

It was fixed only in the last major release, 1.3.x, and only in the 
xforms frontend. The fix is trivial (for Qt too) and requires that 
LyX responds only to a subset of mouse events from the underlying 
X11, MacOS or Win32 graphics libraries. In the xforms frontend we use 
a timer, so:
// The timer runs for 200ms
static Timer timer(200);
if (timer.running())
return;
timer.start();
dispatch(mouse_event_to_the_lyx_core);

This could go in, almost as is, to the mouseEventHandler in 
QContentPane.C. Feel free to try ;-)

-- 
Angus



Re: scrolling (three questions)

2003-10-29 Thread John Levon
On Wed, Oct 29, 2003 at 08:31:20PM -0500, Ronald Florence wrote:

> LyX users have -- workarounds.  Why can't the scrolling be fixed?  It
> would be very useful to be able to mark large blocks of text with the
> mouse.

It could be fixed. It just needs somebody to do it.

john

-- 
Khendon's Law:
If the same point is made twice by the same person, the thread is over.


Re: scrolling (three questions)

2003-10-29 Thread Ronald Florence
Angus Leeming <[EMAIL PROTECTED]> writes:

> You should find that the xforms frontend does have a more manageable 
> scrolling behaviour.

I've used LyX from before version 1.0, with xforms and qt frontends,
and don't remember the scrolling ever being satisfactory.  I wish it
were better, but have from necessity developed -- as I suspect other
LyX users have -- workarounds.  Why can't the scrolling be fixed?  It
would be very useful to be able to mark large blocks of text with the
mouse.
-- 

Ronald Florence www.18james.com



Re: scrolling (three questions)

2003-10-29 Thread Angus Leeming
Vladimir Smagley wrote:
> So, what you are saying - there is no way to slow down scrolling?
> Sounds strange, since
> scrolling is done right even in very primitive text editors...

Let's just say that the guys implementing the Qt frontend had more 
important things to do. Like provide a Qt frontend in the first 
place. Remember, this is the very first version of LyX where you 
don't have to use xforms.

You should find that the xforms frontend does have a more manageable 
scrolling behaviour.

-- 
Angus




scrolling (three questions)

2003-10-29 Thread Vladimir Smagley
So, what you are saying - there is no way to slow down scrolling? Sounds 
strange, since
scrolling is done right even in very primitive text editors...

Kayvan A. Sylvan wrote:

On Tue, Oct 28, 2003 at 02:58:35PM -0700, Vladimir Smagley wrote:
 

1) When I use mouse to highlight large chunks of text (bigger than 
the size of open Lyx window),
scrolling goes too fast, by the time I stop highlighting, I usually 
go far far away from the place where
I intended to stop. Is there any way to slow down scrolling while 
highlighting using mouse?
   

It's easier to use the shift key. Click on where you want to start 
highlighting, then hold the shift-key down and press page-down. You can
use the down and up-arrows and cursor movement keys to move the selection
end-point around.

You can try looking at http://www.lyx.org/help for your other
questions. I don't know the answers off the top of my head.
			---Kayvan