Re: showLockedInsetCursor etc

2002-04-16 Thread Andre Poenitz
On Tue, Apr 16, 2002 at 02:33:00PM +0200, Juergen Vigna wrote: > > Ok. So I cahce it from the last redraw? > > Yes. I think every inset has a top_x variable (see inset.h) I don't know > if you already set it but that is certainly the right way to go as then > surrounding inset can also retrieve i

Re: showLockedInsetCursor etc

2002-04-16 Thread Juergen Vigna
On 16-Apr-2002 Andre Poenitz wrote: > Ok. So I cahce it from the last redraw? Yes. I think every inset has a top_x variable (see inset.h) I don't know if you already set it but that is certainly the right way to go as then surrounding inset can also retrieve it with the x() call. (Same for top

Re: showLockedInsetCursor etc

2002-04-16 Thread Andre Poenitz
On Tue, Apr 16, 2002 at 10:06:05AM +0200, Juergen Vigna wrote: > No you're right! This bugged me also for long, but IMO it's easier for the > inset to give this as for the BufferView to find out. It's just your relative > position + top_x. > As I told you we have to cache the top_x anyway in the

RE: showLockedInsetCursor etc

2002-04-16 Thread Juergen Vigna
On 15-Apr-2002 Andre Poenitz wrote: > > When I call this function with (0,0) I get the cursor displayed on a > y-coordinate corresponding to the baseline of my formula, but at the very > left edge of the screen (something that looks like "absolute x-coord 0"). > > So what am I supposed to do he

showLockedInsetCursor etc

2002-04-15 Thread Andre Poenitz
When I call this function with (0,0) I get the cursor displayed on a y-coordinate corresponding to the baseline of my formula, but at the very left edge of the screen (something that looks like "absolute x-coord 0"). So what am I supposed to do here? Does 'everything is relative' not hold? Or is