On Tuesday 12 March 2002 4:58 pm, John Levon wrote:
> On Tue, Mar 12, 2002 at 04:54:52PM +0000, Angus Leeming wrote:
> 
> > 3 a strange | character in the main work area (why not an arrow?)
> > 
> > Personally, I think that 3) should be replaced by 1) and all should use 
> > fl_set_cursor in the xforms frontend. But hey, what do I know?
> 
> I disagree, the IBeam/strut is perfectly common, correct, and useful for
> text entry.
> 
> regards
> john

Whatever. Of more interest to this discussion is why the ? cursor can change 
to an arrow if you take it through the main window. Do you see this? It 
doesn't happen all the time. Attached is a lyx document HOWTO that may or may 
not be interesting.
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

Test the cursor:
\layout Enumerate

Toggle tooltips on using 
\family sans 
Help\SpecialChar \menuseparator
What's\SpecialChar ~
This
\family default 
.
 Here I get a console message
\begin_deeper 
\layout Standard


\family typewriter 
In SetCuror [cursor.c 163] Bad Window
\end_deeper 
\layout Enumerate

Open the citation inset 
\begin_inset LatexCommand \cite{latexbook}

\end_inset 

.
 The cursor is 
\emph on 
not
\emph default 
 a ? in the citation dialog.
 It should be.
 Nonetheless, the tooltips are active.
\layout Enumerate

With the citation dialog still open, toggle tooltips off using 
\family sans 
Help\SpecialChar \menuseparator
What's\SpecialChar ~
This
\family default 
.
 Note that the 
\family typewriter 
Bad Window
\family default 
 message does not occur.
 The cursor in the toolbar is a ?.
 Move it into the main work area and back to the toolbar.
 It's an arrow! Nonetheless, the tooltips are active.
 Move the cursor into the citation dialog; hey! it's a ?
\layout Enumerate

Close the citation dialog and toggle the tooltips off and on.
 Look, those 
\family typewriter 
Bad Window
\family default 
 messages reappear.
\layout Enumerate

Close lyx and then rerun it on this test file.
 The 
\family typewriter 
Bad Window
\family default 
 messages don't appear until after I type in some new text (this) and then
 try and toggle the tooltips.
\layout Standard

So the question is, why do the error messages appear.
 The snippet from 
\family typewriter 
cursor.c
\family default 
:
\layout LyX-Code

void fl_set_cursor(Window win, int name) 
\layout LyX-Code

{ 
\layout LyX-Code

    CurStruct *c = cursors;
\layout LyX-Code

    init_cursors();
\layout LyX-Code

    if (win == 0)
\layout LyX-Code

    { 
\layout LyX-Code

        M_err("SetCuror", "Bad Window");
\layout LyX-Code

        return;
\layout LyX-Code

    }
\layout LyX-Code

    \SpecialChar \ldots{}

\layout Standard

Invoked from 
\family typewriter 
Tooltips::toggleTooltips()
\family default 
:
\layout LyX-Code

fl_set_cursor(FL_ObjWin(ob), cursor);
\layout Standard

so why doesn't this work?
\layout Bibliography
\bibitem {latexbook}

Leslie Lamport.
 
\emph on 
LaTeX: A Document Preparation System.
 
\emph default 
Addison-Wesley, second edition, 1994
\the_end

Reply via email to