Esempio n. 1
0
        protected override void OnDwellStart(ScintillaMouseEventArgs mea)
        {
            base.OnDwellStart(mea);

            int pos = mea.Position;

            List <CodeRuleError> errors = (from e in m_ruleErrors
                                           where pos >= e.range.Start &&
                                           pos < e.range.End
                                           select e).ToList();

            if (errors.Count > 0)
            {
                string message = "";
                bool   first   = true;

                foreach (CodeRuleError error in errors)
                {
                    if (!first)
                    {
                        message += "\r\n";
                    }

                    first    = false;
                    message += error.text;
                }

                CallTip.Show(message, pos);
            }
        }
Esempio n. 2
0
        private void intellua_CallTipClick(object sender, ScintillaNET.CallTipClickEventArgs e)
        {
            Function func = m_calltipFuncion.Func;

            func.CurrentOverloadIndex++;
            if (func.CurrentOverloadIndex == func.Param.Count)
            {
                func.CurrentOverloadIndex = 0;
            }
            m_calltipFuncion.update();

            CallTip.Show(m_calltipFuncion.CalltipString, m_calltipFuncion.HighLightStart, m_calltipFuncion.HighLightEnd);
        }
Esempio n. 3
0
        private void ShowCalltip()
        {
            FunctionCall fc = FunctionCall.Parse(m_source, m_autoCompleteData, CurrentPos);

            if (fc != null)
            {
                m_calltipFuncion = fc;
                CallTip.Show(fc.CalltipString, fc.HighLightStart, fc.HighLightEnd);
            }
            else
            {
                CallTip.Hide();
            }
        }