On Wed, Nov 03, 2004 at 12:53:42PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:
> 
> Juergen> Is it possible to check from within a text inset whether the
> Juergen> cursor is inside that given inset? I have tried cur.inset()
> Juergen> and failed. Basically, I want to draw a visual clue when the
> Juergen> cursor is inside a char style inset (just like mathed's
> Juergen> inline insets do).
> 
> Something like that for paragraphs would be nice too (so that people
> see where paragraphs end when using display math, for example).

The code in cursor.C to check for an inset should be easy enough to
understand to come up with a second function doing the same for
paragraphs. 10 minutes, even given your age ;-)

Andre'

Reply via email to