private void ConstructAndShowCalltip(int currentPos, int selectedParameter, ScriptStruct owningStruct, ScriptToken func)
{
int selectionStart = 0, selectionEnd = 0;
string callTip;
if (func is ScriptFunction)
{
callTip = ConstructFunctionCalltipText((ScriptFunction)func, owningStruct, selectedParameter, out selectionStart, out selectionEnd);
}
else
{
callTip = ConstructVariableCalltipText((ScriptVariable)func, owningStruct);
}
if (callTip != null)
{
if (!string.IsNullOrEmpty(func.Description))
{
callTip += "\n" + func.Description;
}
this.scintillaControl1.CallTipShow(currentPos, callTip);
this.scintillaControl1.CallTipSetHlt(selectionStart, selectionEnd);
}
}