xp cursor as Windows Caret


Subject: xp cursor as Windows Caret
From: Mike Nordell (tamlin@algonet.se)
Date: Mon May 08 2000 - 05:26:35 CDT


The marker for "current position" that's called cursor in FV_View is
known as the Caret in Win32.

One of the problems I found with this being drawn manually is that it
continues to flash even if focus is set to another window. This includes
another "window" in this app (e.g. toolbar combobox). Since this is
really confusing, not to say plain annoying, and Windows handles this by
only allowing one caret per desktop, I'd like some input on this issue.

After looking through FV_View, I came to the conclusion that
1. this probably behaves the same (wrong) way in X.
2. to rewrite it to use Windows caret in Win32 would be too intrusive.

Suggested solution:
FV_View gets two additional public member functions:
setFocus()
killFocus()

that turn on/off the caret. They could also perform other effects, such
as displaying/hiding selection.

Comments?

/Mike



This archive was generated by hypermail 2b25 : Mon May 08 2000 - 04:26:42 CDT