public TextEditorBoxUIExtensions(TextEditorBox textEditorBox, Control host) { this.textEditorBox = textEditorBox; this.host = host; this.popupList = new TextEditorPopup(this.textEditorBox, this.host); this.tooltip = new TextEditorTooltip(); this.tooltip.VisibleChanged += new EventHandler(tooltip_VisibleChanged); }
public TextEditorPopup(TextEditorBox textEditorBox, Control keyboardReceiver) { InitializeComponent(); this.textEditorBox = textEditorBox; this.keyboardReceiver = keyboardReceiver; this.popupList = new PopupList(); this.popupList.Location = new Point(0, 0); this.Controls.Add(this.popupList); this.popupList.DoubleClick += new EventHandler(popupList_DoubleClick); }
public TextEditorPlanTextColorizer(TextEditorBox textEditorBox) { this.textEditorBox = textEditorBox; this.colorItems = new TextEditorColorItem[NormalColorId + 1]; this.colorItems[BlockColorId] = new TextEditorColorItem() { Text = BlockColor, HighlightText = BlockColor, Highlight = HighlightColor }; this.colorItems[SnippetColorId] = new TextEditorColorItem() { Text = SnippetColor, HighlightText = SnippetColor, Highlight = SnippetHighlightColor }; this.colorItems[NormalColorId] = new TextEditorColorItem() { Text = NormalColor, HighlightText = NormalColor, Highlight = HighlightColor }; }