Esempio n. 1
0
        public static ToolTipProvider Attach(Form parentForm, CodeEditor editor)
        {
            ToolTipProvider tp = new ToolTipProvider(parentForm, editor);

            editor.ActiveTextAreaControl.TextArea.ToolTipRequest += new ICSharpCode.TextEditor.ToolTipRequestEventHandler(TextArea_ToolTipRequest);
            return(tp);
        }
Esempio n. 2
0
        //FindAndReplaceForm m_findForm;

        public CodeEditor()
        {
            Disposed += new EventHandler(CodeEditor_Disposed);

            HSettings.ReloadSettings += HSettings_ReloadSettings;
            HSettings_ReloadSettings();
            ActiveTextAreaControl.TextArea.KeyDown += new System.Windows.Forms.KeyEventHandler(TextArea_KeyDown);
            m_imageList = new ImageList();
            m_imgCache  = new ImageCache(m_imageList, Color.White);
            if (MainWindow.Instance != null && CodeCompletionFeature.Allowed)
            {
                m_complHandler = CodeCompletionKeyHandler.Attach(MainWindow.Instance.Window, this);
                m_tipProvider  = ToolTipProvider.Attach(MainWindow.Instance.Window, this);
            }
        }