Author Topic: Improve CC's CallTip  (Read 8025 times)

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Improve CC's CallTip
« on: April 21, 2010, 05:25:26 pm »
1. support preprocessor tip, example: "MessageBox" to "MessageBoxA".


2. support global namespace. like "::MessageBox"
3. support comment/string/char judge.

Related discussion:
http://forums.codeblocks.org/index.php/topic,12387.0.html
http://forums.codeblocks.org/index.php/topic,12396.0.html

Depend patch:http://forums.codeblocks.org/index.php/topic,12406.0.html

EDIT:When replace target use 'itemText+_T("()")', add calltip support.
Code
if (event.GetEventType() == wxEVT_SCI_AUTOCOMP_SELECTION)
    {
...
            control->ReplaceTarget(itemText+_T("()"));
            pos = control->GetCurrentPos();
            control->GotoPos(pos + itemText.size()+2);
            if ((*it).second != 0)
            {
                pos = control->GetCurrentPos();
                control->GotoPos(pos - 1);
                ShowCallTip();  // HERE!
            }
        }
    }

[attachment deleted by admin]
« Last Edit: April 28, 2010, 03:48:09 am by Loaden »