Exemple #1
0
        public ViStatusArea(TextEditor editor)
        {
            this.editor = editor;
            //editor.TextViewMargin.CaretBlink += HandleCaretBlink;
            editor.Caret.PositionChanged += HandlePositionChanged;

            editor.AddTopLevelWidget (this, 0, 0);
            ((TextEditor.EditorContainerChild)editor[this]).FixedPosition = true;
            Show ();
        }
Exemple #2
0
        public ViStatusArea(TextEditor editor)
        {
            this.editor = editor;
            editor.TextViewMargin.CaretBlink += HandleCaretBlink;
            editor.Caret.PositionChanged     += HandlePositionChanged;

            editor.AddTopLevelWidget(this, 0, 0);
            editor[this].FixedPosition = true;
            Show();
        }
Exemple #3
0
		protected override void OnAddedToEditor (TextEditorData data)
		{
			data.Caret.Mode = CaretMode.Block;
			ViActions.RetreatFromLineEnd (data);

			viTextEditor = data.Parent;
			if (viTextEditor != null) {
				statusArea = new ViStatusArea (viTextEditor, this);
				viTextEditor.AddTopLevelWidget (statusArea, 0, 0);
				((TextEditor.EditorContainerChild)viTextEditor[statusArea]).FixedPosition = true;
				statusArea.Show ();
			}
		}