PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 464 forks source link

Wide caret hides text #79

Open XuTpuK opened 8 years ago

XuTpuK commented 8 years ago

When I switch ON wide caret, letter under cursor become invisible - instead of proper caret I see just hardcoded white rectangle, changed to black one.

PavelTorgashov commented 8 years ago

Set CaretColor to semitransparent color, for example 100;0;0;0

XuTpuK commented 8 years ago

Pavel, as a "quick fix" it's OK, but:

  1. It's impossible to set "semitransparent" color in a simple Property Editor. You have to do it in code, what increases "UI dirt".
  2. Why user should set at all any extra property just to achieve simple "block caret"?
  3. Drawing of caret looks too strange - colors are changed unpredictably. AFAIK caret should have ONE color. To draw it you can a) XOR background with caret color b) overwrite BG, but make caret "blinking" to show character underneath.

I hope you'll make standard implementation. I like how it's done in Sublime Editor (phase blinking).