List Info

Thread: Re: paragraph enumeration causes mysterious cursor movement....




Re: paragraph enumeration causes mysterious cursor movement....
user name
2007-09-17 08:09:28
Hello,

ashok _ wrote:
> Hello Andreas:
> 
> On 9/17/07, Andreas Martens  wrote:
>> if something changes the document (e.g. insert
text, change formatting,
>> apply numbering!) automatically the input cursor
becomes visible again.
>> At the end of such action a method UpdateCrsr() is
called which
>> calculates the (graphical) position of the input
cursor. Afterwards it
>> calls a method MakeVisible() to scroll the
displayed area if necessary.
>> You describe it yourself, if you place the cursor
this automatic
>> scrolling does not happen.
> 
> Yes thats exactly how it behaves... though I am not
inserting text,
> changing formatting
> or applying numbering, i am merely building a hierachy
of the document
> structure in terms of the numbering level (everything
is "read"
> activity ) - and storing this hierarchy into a vector
that in turn
> refreshes a JList list box....... see the brief extract
of code below
> -  [1]
[..]
> Is there anyway i can suppress the automatic scrolling
back behaviour... ?

I do not know how to suppress this behavior.

> it seems like a usability issue to me..., maybe even a
bug, since I am
> not really
> writing anything into the document.

Yes, this could be a bug. At first go I didn't find a reason
in your 
code snippet for the automatic scrolling.
Maybe you could reduce your code until you get the code line
which 
causes the trouble?
Regards
	Andreas


-- 
Andreas Martens (ama) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/Gu
llFOSS

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: paragraph enumeration causes mysterious cursor movement....
user name
2007-09-17 08:41:50
hello andreas:

On 9/17/07, Andreas Martens wrote:
> > it seems like a usability issue to me..., maybe
even a bug, since I am
> > not really
> > writing anything into the document.
>
> Yes, this could be a bug. At first go I didn't find a
reason in your
> code snippet for the automatic scrolling.
> Maybe you could reduce your code until you get the code
line which
> causes the trouble?

Sure, I can do that.  Will get back to you with my
findings....

thanks

ashok

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: paragraph enumeration causes mysterious cursor movement....
user name
2007-09-18 04:29:02
Hi Andreas,

I have been able to narrow down the problem.  The issue
seems to be
with the getString() method, this causes the documents
scrolling
behaviour...

Please see the attached document, where I have written a
small
openoffice basic macro to demonstrate the problem with
getString(), it
certainly looks like a bug to me...

thanks

Ashok


On 9/17/07, Andreas Martens  wrote:
> ashok _ wrote:
> > Hello Andreas:
> >
> > it seems like a usability issue to me..., maybe
even a bug, since I am
> > not really
> > writing anything into the document.
>
> Yes, this could be a bug. At first go I didn't find a
reason in your
> code snippet for the automatic scrolling.
> Maybe you could reduce your code until you get the code
line which
> causes the trouble?

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org
  
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )