public Caret(TextArea textArea) { this.textArea = textArea; textArea.GotFocus += new EventHandler(GotFocus); textArea.LostFocus += new EventHandler(LostFocus); if (Environment.OSVersion.Platform == PlatformID.Unix) caretImplementation = new ManagedCaret(this); else caretImplementation = new Win32Caret(this); }
public Caret(TextArea textArea) { this.textArea = textArea; textArea.GotFocus += GotFocus; textArea.LostFocus += LostFocus; if (Environment.OSVersion.Platform == PlatformID.Unix) { caretImplementation = new ManagedCaret(this); } else { caretImplementation = new Win32Caret(this); } }
public Caret(TextArea textArea) { _textArea = textArea; textArea.GotFocus += new EventHandler(GotFocus); textArea.LostFocus += new EventHandler(LostFocus); // Avalon says: // Create Win32 caret so that Windows knows where our managed caret is. This is necessary for // features like 'Follow text editing' in the Windows Magnifier. if (Environment.OSVersion.Platform == PlatformID.Unix) { _caretImplementation = new ManagedCaret(this); } else { _caretImplementation = new Win32Caret(this); } }