Re: right click on table

Return to index




Posted: 01/10/2005 11:26:00


The MoveCaretTo(X, Y) on work when the scrollbar is on the top most. Once

the scroll bar is scrolled, no matter it is on center, top(lower than top

most) or bottom, MoveCaretTo(X, Y) will fail.

"CCY" <> wrote in message

> Sorry, I finally found out that it is not the table problem. It is because

> of the scrollbar problem.


> When the scrollbar is on top run MoveCaretTo(X, Y) in OnRVMouseDown Event

> has no problem. The cursor is located at the correct location. But when


> scrollbar has been scrolled to the bottom, the MoveCaretTo(X, Y) will no

> longer locate the cursor to the correct location. Why?



> "Sergey Tkachenko" <> wrote in message

> news:41dfa3f2$

> >

> > Do you mean clicking on the table border or between cells?

> > What's the correct location in this case?

> >

> > >when right click on a table, i can already detect it as a table but the

> > >MoveCaretTo(X, Y) does not work. The caret is moved to somewhere


> > the

> > >table. What should I do to move it to correct location?

> > >

> > >

> >



Powered by ABC Amber Outlook Express Converter