Hello Jean-Marc,

> I am not sure we undertand each other: in my mind, this "offset" is 
> indeed the amount of horizontal pixel by which the row has been slid. 
> That is, instead of drawing the part of the row that goes from 0 to 
> window_width, LyX will draw the part between offset and 
> offset+window_width. Isn't this what you are proposing below?
> 
> What is in your mind the difference between an offset and "an attribute 
> which shows the actual position in pixels of the leftmost edge of the 
> current appearing screen"?

There is no difference according to your above definition. Then now we are
on the same track. What I had in mind about this offset was, the amount of
pixels which shows how far the cursor is away from the screen limits. That
is; offset = targetX() - screen width. I think it would be better to call it
by some name like, slideX. Still cannot think of a proper name. 

> The problem might be that the word "offset" was a poor choice from my part.
> 
> The algorithm you describe below is exactly what I have in mond. 
> Concerning this left_value variable, it is exactly what I called an 
> "offset" and I think that it should be kept in the bufferview (along 
> with the row to which it applies).

When a LyX document opens, the cursor appears at the point where it was when
the document was closed after the final edition. How this is handled (from
where)? Is it something involved with BufferView.cpp?

Thank you
Hashini



Reply via email to